lib: Make sid_parse return the parsed length
commite18610a197aab80a32cae8c1e09b96496679bbad
authorVolker Lendecke <vl@samba.org>
Mon, 11 Mar 2019 15:55:57 +0000 (11 16:55 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 12 Mar 2019 00:42:19 +0000 (12 00:42 +0000)
tree2868943bc213731d1c8c6ff4afbb1120bf35873d
parenta27c39c2c9fd3161f5bf3ae5dba687c8d49519ef
lib: Make sid_parse return the parsed length

Use a temporary struct as a return value to make the compiler catch all
callers. If we just changed bool->ssize_t, this would just generate a
warning. struct sid_parse_ret will go away in the next commit

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/security/dom_sid.h
libcli/security/util_sid.c
source3/lib/smbldap.c
source3/lib/tldap_util.c
source3/libads/ldap.c
source3/modules/vfs_default.c
source3/torture/torture.c
source4/dsdb/common/util.c
source4/torture/unix/whoami.c