mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s3: Remove use of iconv_convenience.
This commit is contained in:
@ -396,7 +396,7 @@ bool sid_linearize(char *outbuf, size_t len, const DOM_SID *sid)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
if (len < ndr_size_dom_sid(sid, NULL, 0))
|
||||
if (len < ndr_size_dom_sid(sid, 0))
|
||||
return False;
|
||||
|
||||
SCVAL(outbuf,0,sid->sid_rev_num);
|
||||
@ -538,7 +538,7 @@ char *sid_binstring(TALLOC_CTX *mem_ctx, const DOM_SID *sid)
|
||||
{
|
||||
uint8_t *buf;
|
||||
char *s;
|
||||
int len = ndr_size_dom_sid(sid, NULL, 0);
|
||||
int len = ndr_size_dom_sid(sid, 0);
|
||||
buf = talloc_array(mem_ctx, uint8_t, len);
|
||||
if (!buf) {
|
||||
return NULL;
|
||||
@ -557,7 +557,7 @@ char *sid_binstring(TALLOC_CTX *mem_ctx, const DOM_SID *sid)
|
||||
char *sid_binstring_hex(const DOM_SID *sid)
|
||||
{
|
||||
char *buf, *s;
|
||||
int len = ndr_size_dom_sid(sid, NULL, 0);
|
||||
int len = ndr_size_dom_sid(sid, 0);
|
||||
buf = (char *)SMB_MALLOC(len);
|
||||
if (!buf)
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user