libcli/security: introduce struct sddl_transition_state
authorStefan Metzmacher <metze@samba.org>
Thu, 30 Apr 2020 17:49:12 +0000 (19:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 20 Mar 2023 09:54:29 +0000 (09:54 +0000)
commit7d466a913f2c0038b30424403a7355db849fee7a
treef2456b45700bc4301cf36ff290578552c9bdba96
parent3e2eb1b02366c380f1ca4d112f10e2663c1b2fef
libcli/security: introduce struct sddl_transition_state

In future we'll need more than 'domain_sid' in order
to do the correct transition of SDDL to/from security_descriptor.

In the end we most likely add an
sddl_transition_{create,encode,decode}() api in order
to allow the caller to create an sddl_transition_state
once and then pass it to multiple calls to encode/decode.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
libcli/security/sddl.c