summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-13 17:57:57 +0100
committerGünther Deschner <gd@samba.org>2008-02-13 23:01:33 +0100
commit834fa856dae7c2a7d802fce55621055417946f16 (patch)
treef13f62d20e37f5dad38ff30598f3537c839a5d30 /source3
parenta15db9cadaedd000687a9dab1b027f0093f764a7 (diff)
downloadsamba-834fa856dae7c2a7d802fce55621055417946f16.tar.gz
samba-834fa856dae7c2a7d802fce55621055417946f16.tar.bz2
samba-834fa856dae7c2a7d802fce55621055417946f16.zip
Move some lsa init routines around.
Guenther (This used to be commit 8d3e7e8bb067b9e0aab79bc460647e8a6176102e)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/init_lsa.c40
-rw-r--r--source3/rpc_parse/parse_lsa.c40
2 files changed, 40 insertions, 40 deletions
diff --git a/source3/rpc_client/init_lsa.c b/source3/rpc_client/init_lsa.c
index 0af85c0373..114e435945 100644
--- a/source3/rpc_client/init_lsa.c
+++ b/source3/rpc_client/init_lsa.c
@@ -46,3 +46,43 @@ void init_lsa_AsciiString(struct lsa_AsciiString *name, const char *s)
name->string = s;
}
+/*******************************************************************
+ Inits an lsa_QosInfo structure.
+********************************************************************/
+
+void init_lsa_sec_qos(struct lsa_QosInfo *r,
+ uint32_t len,
+ uint16_t impersonation_level,
+ uint8_t context_mode,
+ uint8_t effective_only)
+{
+ DEBUG(5, ("init_lsa_sec_qos\n"));
+
+ r->len = len;
+ r->impersonation_level = impersonation_level;
+ r->context_mode = context_mode;
+ r->effective_only = effective_only;
+}
+
+/*******************************************************************
+ Inits an lsa_ObjectAttribute structure.
+********************************************************************/
+
+void init_lsa_obj_attr(struct lsa_ObjectAttribute *r,
+ uint32_t len,
+ uint8_t *root_dir,
+ const char *object_name,
+ uint32_t attributes,
+ struct security_descriptor *sec_desc,
+ struct lsa_QosInfo *sec_qos)
+{
+ DEBUG(5,("init_lsa_obj_attr\n"));
+
+ r->len = len;
+ r->root_dir = root_dir;
+ r->object_name = object_name;
+ r->attributes = attributes;
+ r->sec_desc = sec_desc;
+ r->sec_qos = sec_qos;
+}
+
diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c
index c4a7c057a6..b8a0b03273 100644
--- a/source3/rpc_parse/parse_lsa.c
+++ b/source3/rpc_parse/parse_lsa.c
@@ -176,46 +176,6 @@ static bool lsa_io_dom_r_ref(const char *desc, DOM_R_REF *dom, prs_struct *ps, i
}
/*******************************************************************
- Inits an lsa_QosInfo structure.
-********************************************************************/
-
-void init_lsa_sec_qos(struct lsa_QosInfo *r,
- uint32_t len,
- uint16_t impersonation_level,
- uint8_t context_mode,
- uint8_t effective_only)
-{
- DEBUG(5, ("init_lsa_sec_qos\n"));
-
- r->len = len;
- r->impersonation_level = impersonation_level;
- r->context_mode = context_mode;
- r->effective_only = effective_only;
-}
-
-/*******************************************************************
- Inits an lsa_ObjectAttribute structure.
-********************************************************************/
-
-void init_lsa_obj_attr(struct lsa_ObjectAttribute *r,
- uint32_t len,
- uint8_t *root_dir,
- const char *object_name,
- uint32_t attributes,
- struct security_descriptor *sec_desc,
- struct lsa_QosInfo *sec_qos)
-{
- DEBUG(5,("init_lsa_obj_attr\n"));
-
- r->len = len;
- r->root_dir = root_dir;
- r->object_name = object_name;
- r->attributes = attributes;
- r->sec_desc = sec_desc;
- r->sec_qos = sec_qos;
-}
-
-/*******************************************************************
Inits a LSA_SID_ENUM structure.
********************************************************************/