summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-11-13 01:38:41 +0000
committerLuke Leighton <lkcl@samba.org>1998-11-13 01:38:41 +0000
commit9412edfd4c11a26e4ef290839375e3959cf70a7e (patch)
treed27a0279419f0f5f7135ac902297e3ed7025d15b /source/include
parentbd09e00112fd371aa070b5b47f1d4e27137a7f2e (diff)
downloadsamba-9412edfd4c11a26e4ef290839375e3959cf70a7e.tar.gz
samba-9412edfd4c11a26e4ef290839375e3959cf70a7e.tar.xz
samba-9412edfd4c11a26e4ef290839375e3959cf70a7e.zip
security descriptors
Diffstat (limited to 'source/include')
-rw-r--r--source/include/proto.h4
-rw-r--r--source/include/rpc_reg.h20
-rw-r--r--source/include/smb.h6
3 files changed, 10 insertions, 20 deletions
diff --git a/source/include/proto.h b/source/include/proto.h
index aa2d3b64862..843c0a33118 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -1648,7 +1648,9 @@ void reg_io_q_flush_key(char *desc, REG_Q_FLUSH_KEY *r_q, prs_struct *ps, int d
void reg_io_r_flush_key(char *desc, REG_R_FLUSH_KEY *r_r, prs_struct *ps, int depth);
void make_reg_q_create_key(REG_Q_CREATE_KEY *q_c, POLICY_HND *hnd,
char *name, char *class,
- SEC_ACCESS *sam_access);
+ SEC_ACCESS *sam_access,
+ SEC_DESC_BUF *sec_buf,
+ int sec_len, SEC_DESC *sec);
void reg_io_q_create_key(char *desc, REG_Q_CREATE_KEY *r_q, prs_struct *ps, int depth);
void reg_io_r_create_key(char *desc, REG_R_CREATE_KEY *r_r, prs_struct *ps, int depth);
void make_reg_q_delete_val(REG_Q_DELETE_VALUE *q_c, POLICY_HND *hnd,
diff --git a/source/include/rpc_reg.h b/source/include/rpc_reg.h
index ceb88ad657c..77660525888 100644
--- a/source/include/rpc_reg.h
+++ b/source/include/rpc_reg.h
@@ -228,20 +228,12 @@ typedef struct q_reg_create_key_info
SEC_ACCESS sam_access; /* access rights flags, see rpc_secdes.h */
uint32 ptr1;
- uint32 unknown_0; /* 0x0000 000C */
-
- uint32 ptr2;
- uint32 sec_len1; /* 0x14 - length of security descriptor, bytes */
- uint32 sec_len2; /* 0x14 - length of security descriptor, bytes */
- uint32 sec_len3; /* 0x0 - length of security descriptor, bytes */
- uint32 sec_len4; /* 0x14 - length of security descriptor, bytes */
- uint32 sec_len5; /* 0x0 - length of security descriptor, bytes */
- uint32 sec_len6; /* 0x14 - length of security descriptor, bytes */
-#if 0
- SEC_DES sec_desc;
-#else
- uint8 buf_unk[20]; /* 01 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
-#endif
+ uint32 sec_info; /* xxxx_SECURITY_INFORMATION */
+
+ uint32 ptr2; /* pointer */
+ BUFHDR hdr_sec; /* header for security data */
+ uint32 ptr3; /* pointer */
+ SEC_DESC_BUF *data;
uint32 unknown_2; /* 0x0000 0000 */
diff --git a/source/include/smb.h b/source/include/smb.h
index 4f064d27d18..9339cdda6f0 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -1655,11 +1655,7 @@ extern int unix_ERR_code;
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
/* zero a structure given a pointer to the structure */
-#if 0
-#define ZERO_STRUCTP(x) { }
-#else
-#define ZERO_STRUCTP(x) { if (x != NULL) memset((char *)(x), 0, sizeof(*(x))); }
-#endif
+#define ZERO_STRUCTP(x) { memset((char *)(x), 0, sizeof(*(x))); }
#define ZERO_STRUCTPN(x) { if (x != NULL) ZERO_STRUCTP(x); }