libcli/secdesc: remove dup_sec_desc()
authorDavid Disseldorp <ddiss@samba.org>
Mon, 26 May 2014 14:25:31 +0000 (16:25 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 28 May 2014 15:52:13 +0000 (17:52 +0200)
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>
libcli/security/secdesc.c
libcli/security/secdesc.h

index 72ba2dba58906c76637ef092227395eb732dcd46..44897b5953dc0e1874cf6945d543e165aba8da55 100644 (file)
@@ -241,22 +241,6 @@ error_exit:
        return NULL;
 }
 
-/*******************************************************************
- 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
 ********************************************************************/
index 9002f7538ef6abea60be658b0ffbc1bb5b93b382..4cef9be56e39ea38c34629f2f04f051365f9c043 100644 (file)
@@ -47,11 +47,6 @@ struct security_descriptor *make_sec_desc(TALLOC_CTX *ctx,
                        const struct dom_sid *owner_sid, const struct dom_sid *grp_sid,
                        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
 ********************************************************************/