1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/lib/crypto/wscript_build
Andreas Schneider cb034a9f60 lib:crypto: Add samba_gnutls_weak_crypto()
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2020-03-19 20:46:41 +00:00

55 lines
1.6 KiB
Python

#!/usr/bin/env python
extra_deps = ''
if (bld.CONFIG_SET("HAVE_AESNI_INTEL") and
not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC')):
extra_deps += ' aesni-intel'
bld.SAMBA_SUBSYSTEM('GNUTLS_HELPERS',
source='''
gnutls_error.c
gnutls_arcfour_confounded_md5.c
gnutls_weak_crypto.c
''',
deps='gnutls samba-errors');
bld.SAMBA_SUBSYSTEM('LIBCRYPTO_AES',
source='aes.c rijndael-alg-fst.c',
deps='talloc',
enabled=not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC'))
bld.SAMBA_SUBSYSTEM('LIBCRYPTO_AES_CMAC',
source='aes_cmac_128.c',
deps='talloc',
enabled=not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC'))
bld.SAMBA_SUBSYSTEM('LIBCRYPTO',
source='''
md4.c
''',
deps='''
talloc
LIBCRYPTO_AES
LIBCRYPTO_AES_CMAC
''' + extra_deps)
bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO_AES_CMAC',
source='aes_cmac_128_test.c',
autoproto='aes_cmac_test_proto.h',
deps='talloc',
enabled=not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC'))
bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO',
source='md4test.c',
autoproto='test_proto.h',
deps='''
LIBCRYPTO
TORTURE_LIBCRYPTO_AES_CMAC
''')
bld.SAMBA_PYTHON('python_crypto',
source='py_crypto.c',
deps='gnutls talloc',
realname='samba/crypto.so')