diff options
author | Günther Deschner <gd@samba.org> | 2009-02-24 11:34:57 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-24 12:41:20 +0100 |
commit | f21ae452a008370a4846c8955ac1a8fe1a0acb3c (patch) | |
tree | 1bf8d245917bf14f2eca68a45d6b09ee4feb5c96 /source3/include | |
parent | 31f2cddcf5886b0a78290fdfa609a2ee63bda5ad (diff) | |
download | samba-f21ae452a008370a4846c8955ac1a8fe1a0acb3c.tar.gz samba-f21ae452a008370a4846c8955ac1a8fe1a0acb3c.tar.bz2 samba-f21ae452a008370a4846c8955ac1a8fe1a0acb3c.zip |
s3-lib: add marshall_sec_desc_buf and unmarshall_sec_desc_buf helpers.
Guenther
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 14241d5ce3..3ca94b9192 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -695,8 +695,13 @@ SEC_DESC *dup_sec_desc(TALLOC_CTX *ctx, const SEC_DESC *src); NTSTATUS marshall_sec_desc(TALLOC_CTX *mem_ctx, struct security_descriptor *secdesc, uint8 **data, size_t *len); +NTSTATUS marshall_sec_desc_buf(TALLOC_CTX *mem_ctx, + struct sec_desc_buf *secdesc_buf, + uint8_t **data, size_t *len); NTSTATUS unmarshall_sec_desc(TALLOC_CTX *mem_ctx, uint8 *data, size_t len, struct security_descriptor **psecdesc); +NTSTATUS unmarshall_sec_desc_buf(TALLOC_CTX *mem_ctx, uint8_t *data, size_t len, + struct sec_desc_buf **psecdesc_buf); SEC_DESC *make_standard_sec_desc(TALLOC_CTX *ctx, const DOM_SID *owner_sid, const DOM_SID *grp_sid, SEC_ACL *dacl, size_t *sd_size); SEC_DESC_BUF *make_sec_desc_buf(TALLOC_CTX *ctx, size_t len, SEC_DESC *sec_desc); |