libcli/security: make sddl_encode_sid an external function
commit2bf404eb5a999a174c1821402eb553da8576489d
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 21 Jul 2023 04:40:38 +0000 (21 16:40 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 7 Sep 2023 04:53:41 +0000 (7 04:53 +0000)
treeab503d3918154d238705bd26cc6677dd1f3130d8
parent6d012757a076063bcd123966f697fc8b0d1b2736
libcli/security: make sddl_encode_sid an external function

Mirroring the last commit for sddl_decode_sid, we want to be able to
encode SIDs from sibling source files.

The dom_sid functions are insufficient for this because they don't know
the SDDL short aliases, like "WD".

sddl_transition_encode_sid() is used internally.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/security/sddl.c
libcli/security/sddl.h