1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/crypto/wscript
Joseph Sutton 6369f2cf1b lib:crypto: Add GKDI module with some constants
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-12-21 20:21:34 +00:00

54 lines
1.8 KiB
Python

#!/usr/bin/env python
def build(bld):
bld.SAMBA_SUBSYSTEM("GNUTLS_HELPERS",
source='''
gnutls_error.c
gnutls_aead_aes_256_cbc_hmac_sha512.c
gnutls_arcfour_confounded_md5.c
gnutls_weak_crypto.c
gnutls_sp800_108.c
''',
deps="gnutls samba-errors")
bld.SAMBA_SUBSYSTEM('LIBCRYPTO',
source='''
md4.c
''',
deps='''
talloc
''')
bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO',
source='md4test.c',
autoproto='test_proto.h',
deps='''
LIBCRYPTO
''')
bld.SAMBA_SUBSYSTEM('gkdi',
source='gkdi.c')
bld.SAMBA_PYTHON('python_crypto',
source='py_crypto.c',
deps='gnutls talloc LIBCLI_AUTH',
realname='samba/crypto.so')
bld.SAMBA_BINARY('test_gnutls_aead_aes_256_cbc_hmac_sha512',
source='''
gnutls_error.c
tests/test_gnutls_aead_aes_256_cbc_hmac_sha512.c
''',
deps='cmocka gnutls samba-util samba-errors',
local_include=False,
for_selftest=True)
bld.SAMBA_BINARY('test_gnutls_sp800_108',
source='''
tests/test_gnutls_sp800_108.c
''',
deps='cmocka GNUTLS_HELPERS samba-util',
local_include=False,
for_selftest=True)