mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
2e8e93fdd1
It's getting unwieldy adding new PAC buffer types when each one has to have its own handling. It also makes the possibility of mistakes more likely. Add a new container, 'struct pac_blobs', containing the types of PAC buffers in a given PAC, with an index for quick access to the types we support specifically. We can add new blobs (overriding existing ones) by calling pac_blobs_add_blob(), and override certain blobs that must be present with pac_blobs_replace_existing(). This removes the need to have a complicated 'switch' statement with different logic for each PAC buffer type, or a dozen index variables. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> |
||
---|---|---|
.. | ||
ABI | ||
gen_ndr | ||
idl | ||
ndr | ||
rpc | ||
tests | ||
tools | ||
binding-strings.txt | ||
ndr_krb5pac.pc.in | ||
ndr_nbt.pc.in | ||
ndr_standard.pc.in | ||
ndr.pc.in | ||
tables.pl | ||
wscript_build |