]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Move some lsa init routines around.
authorGünther Deschner <gd@samba.org>
Wed, 13 Feb 2008 16:57:57 +0000 (17:57 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 13 Feb 2008 22:01:33 +0000 (23:01 +0100)
Guenther

source/rpc_client/init_lsa.c
source/rpc_parse/parse_lsa.c

index 0af85c0373a0e9f8d854333b0bc2ea76fa670a2e..114e435945bf72a1eab10a833afdf4399e8faa7e 100644 (file)
@@ -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;
+}
+
index c4a7c057a638a3c732eb37795bdef6dcbb2bfbfe..b8a0b032733100993d1e01776841f446765d6213 100644 (file)
@@ -175,46 +175,6 @@ static bool lsa_io_dom_r_ref(const char *desc, DOM_R_REF *dom, prs_struct *ps, i
        return True;
 }
 
-/*******************************************************************
- 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.
 ********************************************************************/