2010-03-28 09:48:49 +11:00
#!/usr/bin/env python
2012-02-06 17:47:25 +01:00
extra_deps = ''
2019-12-10 18:06:29 +01:00
if (bld.CONFIG_SET("HAVE_AESNI_INTEL") and
not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC')):
2017-09-06 11:40:02 -07:00
extra_deps += ' aesni-intel'
2019-06-26 16:41:05 +12:00
bld.SAMBA_SUBSYSTEM('GNUTLS_HELPERS',
2019-06-27 15:05:49 +12:00
source='''
gnutls_error.c
gnutls_arcfour_confounded_md5.c
2019-11-04 17:01:50 +01:00
gnutls_weak_crypto.c
2019-06-27 15:05:49 +12:00
''',
2019-06-27 16:45:33 +12:00
deps='gnutls samba-errors');
2019-06-26 16:41:05 +12:00
2019-03-15 14:54:13 +01:00
bld.SAMBA_SUBSYSTEM('LIBCRYPTO_AES',
source='aes.c rijndael-alg-fst.c',
2019-12-10 18:03:57 +01:00
deps='talloc',
enabled=not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC'))
2019-03-15 14:54:13 +01:00
bld.SAMBA_SUBSYSTEM('LIBCRYPTO_AES_CMAC',
source='aes_cmac_128.c',
2019-03-15 14:54:13 +01:00
deps='talloc',
enabled=not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC'))
2019-03-15 14:54:13 +01:00
2010-03-17 22:07:42 +11:00
bld.SAMBA_SUBSYSTEM('LIBCRYPTO',
2019-02-22 13:28:01 +01:00
source='''
md4.c
''',
deps='''
talloc
2019-03-15 14:54:13 +01:00
LIBCRYPTO_AES
LIBCRYPTO_AES_CMAC
2019-02-22 13:28:01 +01:00
''' + extra_deps)
2010-03-17 22:07:42 +11:00
2019-03-15 14:54:13 +01:00
bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO_AES_CMAC',
source='aes_cmac_128_test.c',
autoproto='aes_cmac_test_proto.h',
2019-03-15 14:54:13 +01:00
deps='talloc',
enabled=not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC'))
2019-03-15 14:54:13 +01:00
2010-03-17 22:07:42 +11:00
bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO',
2019-03-15 14:54:13 +01:00
source='md4test.c',
2015-08-14 13:13:21 +02:00
autoproto='test_proto.h',
2019-03-15 14:54:13 +01:00
deps='''
LIBCRYPTO
TORTURE_LIBCRYPTO_AES_CMAC
''')
2017-03-10 16:20:06 +02:00
2019-02-15 16:37:48 +13:00
bld.SAMBA_PYTHON('python_crypto',
2019-02-22 12:59:13 +01:00
source='py_crypto.c',
deps='gnutls talloc',
realname='samba/crypto.so')