Manually marshall dom_sid, so we can use a fixed size array for
authorJelmer Vernooij <jelmer@samba.org>
Fri, 12 Dec 2008 18:52:06 +0000 (19:52 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 12 Dec 2008 18:52:06 +0000 (19:52 +0100)
commitc4fc0b49f05f56174dc904a19d9e4dfc6d3ef523
treea78940284a07c1b2f3d9f199f5c1f5a7a0ef556e
parent0727fbe87d0016a3b18dbdfedcd417126e1aa514
Manually marshall dom_sid, so we can use a fixed size array for
dom_sid.sub_auths rather than a dynamically allocated one.

This makes it possible to use the same DCE/RPC object code for Samba 3
and Samba 4's DCE/RPC parsers and allows copying sids more easily
(since they no longer contain any pointers). The cost of having additional
manual marshalling code is limited (~35 additional lines of C code).
source4/libcli/security/dom_sid.c
source4/libcli/security/sddl.c
source4/libcli/security/security_descriptor.c
source4/librpc/idl/dom_sid.idl
source4/librpc/ndr/ndr_dom_sid.c
source4/torture/unix/whoami.c