1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/libcli/security/wscript_build
Douglas Bagnall 4b032d2558 libcli/security: claim_v1_check_and_sort(): add all types
To manage this sort we need a qsort_r-like sort context which holds:

a) the value type,
b) a case sensitive flag for the string compare, and
c) a return flag indicating a failure. Failures are not picked up until
   after the sort finishes.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-11-27 22:37:32 +00:00

65 lines
1.7 KiB
Python

#!/usr/bin/env python
bld.SAMBA_LIBRARY('samba-security',
source=['dom_sid.c',
'display_sec.c', 'secace.c', 'secacl.c',
'security_descriptor.c', 'sddl.c', 'privileges.c',
'security_token.c', 'access_check.c',
'object_tree.c', 'create_descriptor.c',
'util_sid.c', 'session.c', 'secdesc.c',
'conditional_ace.c', 'sddl_conditional_ace.c',
'claims-conversions.c'],
private_library=True,
deps='stable_sort talloc ndr NDR_SECURITY NDR_CONDITIONAL_ACE')
pytalloc_util = bld.pyembed_libname('pytalloc-util')
bld.SAMBA_PYTHON('pysecurity',
source='pysecurity.c',
deps='samba-security %s' % pytalloc_util,
realname='samba/security.so'
)
bld.SAMBA_BINARY(
'test_sddl_conditional_ace',
source='tests/test_sddl_conditional_ace.c',
deps='''
cmocka
talloc
samba-util
asn1util
NDR_SECURITY
samba-security
''',
for_selftest=True
)
bld.SAMBA_BINARY(
'test_run_conditional_ace',
source='tests/test_run_conditional_ace.c',
deps='''
cmocka
talloc
samba-util
asn1util
NDR_SECURITY
samba-security
''',
for_selftest=True
)
bld.SAMBA_BINARY(
'test_claim_conversion',
source='tests/test_claim_conversion.c',
deps='''
cmocka
talloc
samba-util
asn1util
NDR_SECURITY
NDR_CLAIMS
samba-security
''',
for_selftest=True
)