libcli/security: remove sec_ace_equal
authorDavid Disseldorp <ddiss@samba.org>
Wed, 28 May 2014 15:50:52 +0000 (17:50 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 29 May 2014 01:34:38 +0000 (03:34 +0200)
This function is a duplicate of security_ace_equal(), and is no longer
used.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu May 29 03:34:38 CEST 2014 on sn-devel-104

libcli/security/secace.c
libcli/security/secace.h

index c2cbe906328b2c7854f593ca8afe3dc48d7d0d0c..b7c9fc54d1e59a2594dda9769b342f3e815e65e9 100644 (file)
@@ -88,38 +88,6 @@ NTSTATUS sec_ace_mod_sid(struct security_ace *ace, size_t num, const struct dom_
        return NT_STATUS_NOT_FOUND;
 }
 
-/*******************************************************************
- Compares two struct security_ace structures
-********************************************************************/
-
-bool sec_ace_equal(const struct security_ace *s1, const struct security_ace *s2)
-{
-       /* Trivial case */
-
-       if (!s1 && !s2) {
-               return true;
-       }
-
-       if (!s1 || !s2) {
-               return false;
-       }
-
-       /* Check top level stuff */
-
-       if (s1->type != s2->type || s1->flags != s2->flags ||
-           s1->access_mask != s2->access_mask) {
-               return false;
-       }
-
-       /* Check SID */
-
-       if (!dom_sid_equal(&s1->trustee, &s2->trustee)) {
-               return false;
-       }
-
-       return true;
-}
-
 int nt_ace_inherit_comp(const struct security_ace *a1, const struct security_ace *a2)
 {
        int a1_inh = a1->flags & SEC_ACE_FLAG_INHERITED_ACE;
index 43e6a916161d4e0d467086137de280a958ba02e5..5416134dd644908af6722d8252b73af84fec1d14 100644 (file)
@@ -28,7 +28,6 @@ void sec_ace_copy(struct security_ace *ace_dest, const struct security_ace *ace_
 void init_sec_ace(struct security_ace *t, const struct dom_sid *sid, enum security_ace_type type,
                  uint32_t mask, uint8_t flag);
 NTSTATUS sec_ace_mod_sid(struct security_ace *ace, size_t num, const struct dom_sid *sid, uint32_t mask);
-bool sec_ace_equal(const struct security_ace *s1, const struct security_ace *s2);
 int nt_ace_inherit_comp( const struct security_ace *a1, const struct security_ace *a2);
 int nt_ace_canon_comp( const struct security_ace *a1, const struct security_ace *a2);
 void dacl_sort_into_canonical_order(struct security_ace *srclist, unsigned int num_aces);