summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-23 13:31:27 +0100
committerVolker Lendecke <vl@samba.org>2010-01-23 14:35:37 +0100
commitdbf9017a807f317333596092fc3493d7c5a96c65 (patch)
tree17d7559c5c7249ccb0981036494d874499ab8efa /source3
parent2002b4e4c23d1a5392c4c09ecfb9b0e9f34487ae (diff)
downloadsamba-dbf9017a807f317333596092fc3493d7c5a96c65.tar.gz
samba-dbf9017a807f317333596092fc3493d7c5a96c65.tar.bz2
samba-dbf9017a807f317333596092fc3493d7c5a96c65.zip
s3: Remove string_sid_talloc
All but one call were pointless, so I think this API should go
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/lib/util_sid.c13
2 files changed, 0 insertions, 14 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index c3f0dff469..01372c2587 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1317,7 +1317,6 @@ char *sid_string_talloc(TALLOC_CTX *mem_ctx, const DOM_SID *sid);
char *sid_string_dbg(const DOM_SID *sid);
char *sid_string_tos(const DOM_SID *sid);
bool string_to_sid(DOM_SID *sidout, const char *sidstr);
-DOM_SID *string_sid_talloc(TALLOC_CTX *mem_ctx, const char *sidstr);
bool sid_append_rid(DOM_SID *sid, uint32 rid);
bool sid_compose(DOM_SID *dst, const DOM_SID *domain_sid, uint32 rid);
bool sid_split_rid(DOM_SID *sid, uint32 *rid);
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index a181502a89..20c2663de9 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -271,19 +271,6 @@ bool string_to_sid(DOM_SID *sidout, const char *sidstr)
return True;
}
-DOM_SID *string_sid_talloc(TALLOC_CTX *mem_ctx, const char *sidstr)
-{
- DOM_SID *result = TALLOC_P(mem_ctx, DOM_SID);
-
- if (result == NULL)
- return NULL;
-
- if (!string_to_sid(result, sidstr))
- return NULL;
-
- return result;
-}
-
/*****************************************************************
Add a rid to the end of a sid
*****************************************************************/