summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-17 12:20:30 +0200
committerVolker Lendecke <vl@samba.org>2011-08-17 12:30:08 +0200
commit28b237b2cc04d10275cea6890bda425b41cf62f7 (patch)
tree7969cc3612acdb631afc7888ac36f703e5f3dc40
parent8fd5e0ff2e08288d499556b5b48dcc7a9a3fc85f (diff)
downloadsamba-28b237b2cc04d10275cea6890bda425b41cf62f7.tar.gz
samba-28b237b2cc04d10275cea6890bda425b41cf62f7.tar.bz2
samba-28b237b2cc04d10275cea6890bda425b41cf62f7.zip
Remove unused "sid_equal"
-rw-r--r--libcli/security/dom_sid.h1
-rw-r--r--libcli/security/util_sid.c9
2 files changed, 0 insertions, 10 deletions
diff --git a/libcli/security/dom_sid.h b/libcli/security/dom_sid.h
index 04571c21de..5886ce31c6 100644
--- a/libcli/security/dom_sid.h
+++ b/libcli/security/dom_sid.h
@@ -89,7 +89,6 @@ void sid_copy(struct dom_sid *dst, const struct dom_sid *src);
bool sid_blob_parse(DATA_BLOB in, struct dom_sid *sid);
bool sid_parse(const char *inbuf, size_t len, struct dom_sid *sid);
int sid_compare_domain(const struct dom_sid *sid1, const struct dom_sid *sid2);
-bool sid_equal(const struct dom_sid *sid1, const struct dom_sid *sid2);
NTSTATUS add_sid_to_array(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
struct dom_sid **sids, uint32_t *num);
NTSTATUS add_sid_to_array_unique(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
diff --git a/libcli/security/util_sid.c b/libcli/security/util_sid.c
index dd27b7c20d..0f95fbb845 100644
--- a/libcli/security/util_sid.c
+++ b/libcli/security/util_sid.c
@@ -275,15 +275,6 @@ int sid_compare_domain(const struct dom_sid *sid1, const struct dom_sid *sid2)
return dom_sid_compare_auth(sid1, sid2);
}
-/*****************************************************************
- Compare two sids.
-*****************************************************************/
-
-bool sid_equal(const struct dom_sid *sid1, const struct dom_sid *sid2)
-{
- return dom_sid_compare(sid1, sid2) == 0;
-}
-
/********************************************************************
Add SID to an array SIDs
********************************************************************/