diff options
author | Volker Lendecke <vl@samba.org> | 2015-08-24 12:33:28 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-08-26 21:41:12 +0200 |
commit | 4a442e2eb7e0b2c62bcc355d461dfd1aaf8c26e8 (patch) | |
tree | 7df0f521ee3a5a4a64538972254aaac64f90743a /libcli | |
parent | dba9e631bd1e1c7e00430b72f0c60b32ee4eeb33 (diff) | |
download | samba-4a442e2eb7e0b2c62bcc355d461dfd1aaf8c26e8.tar.gz |
lib: Make sid_parse take a uint8_t
sid_parse takes a binary blob, uint8_t reflects this a bit
better than char * does
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/security/dom_sid.h | 2 | ||||
-rw-r--r-- | libcli/security/util_sid.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libcli/security/dom_sid.h b/libcli/security/dom_sid.h index cf3cedea679..86bbbdf0398 100644 --- a/libcli/security/dom_sid.h +++ b/libcli/security/dom_sid.h @@ -94,7 +94,7 @@ bool sid_peek_rid(const struct dom_sid *sid, uint32_t *rid); bool sid_peek_check_rid(const struct dom_sid *exp_dom_sid, const struct dom_sid *sid, uint32_t *rid); 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); +bool sid_parse(const uint8_t *inbuf, size_t len, struct dom_sid *sid); int sid_compare_domain(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); diff --git a/libcli/security/util_sid.c b/libcli/security/util_sid.c index 7d72d64b7d4..7f628562123 100644 --- a/libcli/security/util_sid.c +++ b/libcli/security/util_sid.c @@ -272,7 +272,7 @@ bool sid_blob_parse(DATA_BLOB in, struct dom_sid *sid) Parse a on-the-wire SID to a struct dom_sid. *****************************************************************/ -bool sid_parse(const char *inbuf, size_t len, struct dom_sid *sid) +bool sid_parse(const uint8_t *inbuf, size_t len, struct dom_sid *sid) { DATA_BLOB in = data_blob_const(inbuf, len); return sid_blob_parse(in, sid); |