summaryrefslogtreecommitdiff
path: root/source3/lib/util_sid.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-09-17 12:33:44 +1000
committerGünther Deschner <gd@samba.org>2010-09-20 16:15:03 -0700
commitd7bc452a893a77eb21b547cd8cdf8b420c60ab5d (patch)
tree32803f84567980382f85b0164e9e9f10a99c1bbd /source3/lib/util_sid.c
parentd44e86b473554ad549993c928af68e348ccefe2b (diff)
downloadsamba-d7bc452a893a77eb21b547cd8cdf8b420c60ab5d.tar.gz
samba-d7bc452a893a77eb21b547cd8cdf8b420c60ab5d.tar.bz2
samba-d7bc452a893a77eb21b547cd8cdf8b420c60ab5d.zip
s3: Replace sid_binstring and sid_guidstring with PIDL-based alternatives
This reduces the manual marshalling of these structures by removing the duplication here. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/lib/util_sid.c')
-rw-r--r--source3/lib/util_sid.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index d75c8e2c97..d28333f9da 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -333,26 +333,6 @@ bool non_mappable_sid(struct dom_sid *sid)
Caller must free.
*****************************************************************/
-char *sid_binstring(TALLOC_CTX *mem_ctx, const struct dom_sid *sid)
-{
- uint8_t *buf;
- char *s;
- int len = ndr_size_dom_sid(sid, 0);
- buf = talloc_array(mem_ctx, uint8_t, len);
- if (!buf) {
- return NULL;
- }
- sid_linearize((char *)buf, len, sid);
- s = binary_string_rfc2254(mem_ctx, buf, len);
- TALLOC_FREE(buf);
- return s;
-}
-
-/*****************************************************************
- Return the binary string representation of a struct dom_sid.
- Caller must free.
-*****************************************************************/
-
char *sid_binstring_hex(const struct dom_sid *sid)
{
char *buf, *s;