diff options
author | David Disseldorp <ddiss@samba.org> | 2014-05-26 16:25:31 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-05-28 17:52:13 +0200 |
commit | 58b8c87d0f56b7f868594357d014e4c662644b22 (patch) | |
tree | 135fed56dd173771a3d8b5434edbd44808c0cd67 | |
parent | 23a95931d3b868c6e6bcda0c214be6a12434ae8b (diff) | |
download | samba-58b8c87d0f56b7f868594357d014e4c662644b22.tar.gz samba-58b8c87d0f56b7f868594357d014e4c662644b22.tar.xz samba-58b8c87d0f56b7f868594357d014e4c662644b22.zip |
libcli/secdesc: remove dup_sec_desc()
With all callers converted to use security_descriptor_copy(), this
function can be removed.
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
-rw-r--r-- | libcli/security/secdesc.c | 16 | ||||
-rw-r--r-- | libcli/security/secdesc.h | 5 |
2 files changed, 0 insertions, 21 deletions
diff --git a/libcli/security/secdesc.c b/libcli/security/secdesc.c index 72ba2dba589..44897b5953d 100644 --- a/libcli/security/secdesc.c +++ b/libcli/security/secdesc.c @@ -242,22 +242,6 @@ error_exit: } /******************************************************************* - Duplicate a struct security_descriptor structure. -********************************************************************/ - -struct security_descriptor *dup_sec_desc(TALLOC_CTX *ctx, const struct security_descriptor *src) -{ - size_t dummy; - - if(src == NULL) - return NULL; - - return make_sec_desc( ctx, src->revision, src->type, - src->owner_sid, src->group_sid, src->sacl, - src->dacl, &dummy); -} - -/******************************************************************* Convert a secdesc into a byte stream ********************************************************************/ NTSTATUS marshall_sec_desc(TALLOC_CTX *mem_ctx, diff --git a/libcli/security/secdesc.h b/libcli/security/secdesc.h index 9002f7538ef..4cef9be56e3 100644 --- a/libcli/security/secdesc.h +++ b/libcli/security/secdesc.h @@ -48,11 +48,6 @@ struct security_descriptor *make_sec_desc(TALLOC_CTX *ctx, struct security_acl *sacl, struct security_acl *dacl, size_t *sd_size); /******************************************************************* - Duplicate a struct security_descriptor structure. -********************************************************************/ -struct security_descriptor *dup_sec_desc(TALLOC_CTX *ctx, const struct security_descriptor *src); - -/******************************************************************* Convert a secdesc into a byte stream ********************************************************************/ NTSTATUS marshall_sec_desc(TALLOC_CTX *mem_ctx, |