libcli: remove unused se_create_child_secdesc_buf()
authorRalph Boehme <slow@samba.org>
Wed, 9 May 2018 08:14:37 +0000 (10:14 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 9 May 2018 17:18:43 +0000 (19:18 +0200)
Commit e2c9ad93cb914186b89e2055f1bed3cceee1f768 removed the last caller
of this.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed May  9 19:18:44 CEST 2018 on sn-devel-144

libcli/security/secdesc.c
libcli/security/secdesc.h

index 6e20e90bee52b8fb6135fdf1e13debebf3adecae..8cf44347c7c5937583212bf92f946a4d07decfcc 100644 (file)
@@ -636,31 +636,3 @@ NTSTATUS se_create_child_secdesc(TALLOC_CTX *ctx,
        }
        return NT_STATUS_OK;
 }
-
-NTSTATUS se_create_child_secdesc_buf(TALLOC_CTX *ctx,
-                                       struct sec_desc_buf **ppsdb,
-                                       const struct security_descriptor *parent_ctr,
-                                       bool container)
-{
-       NTSTATUS status;
-       size_t size = 0;
-       struct security_descriptor *sd = NULL;
-
-       *ppsdb = NULL;
-       status = se_create_child_secdesc(ctx,
-                                       &sd,
-                                       &size,
-                                       parent_ctr,
-                                       parent_ctr->owner_sid,
-                                       parent_ctr->group_sid,
-                                       container);
-       if (!NT_STATUS_IS_OK(status)) {
-               return status;
-       }
-
-       *ppsdb = make_sec_desc_buf(ctx, size, sd);
-       if (!*ppsdb) {
-               return NT_STATUS_NO_MEMORY;
-       }
-       return NT_STATUS_OK;
-}
index 34d9d77b4b4871a99b0cce19216efd6871c90bb2..dd8cf4ed716fa20689636c0146db67096690417a 100644 (file)
@@ -97,9 +97,5 @@ NTSTATUS se_create_child_secdesc(TALLOC_CTX *ctx,
                                        const struct dom_sid *owner_sid,
                                        const struct dom_sid *group_sid,
                                        bool container);
-NTSTATUS se_create_child_secdesc_buf(TALLOC_CTX *ctx,
-                                       struct sec_desc_buf **ppsdb,
-                                       const struct security_descriptor *parent_ctr,
-                                       bool container);
 
 #endif /* _SECDESC_H_ */