diff options
author | Andreas Schneider <asn@samba.org> | 2019-03-15 14:54:13 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-08-21 11:14:11 +0000 |
commit | c3f969817553dc9c9db88741bad51100b4d24604 (patch) | |
tree | dd848c48e5c7251d7d50143be3e405661c6a2aa4 /lib/crypto | |
parent | 70ff03ecb6826525727d87ef8807428f91f4e506 (diff) | |
download | samba-c3f969817553dc9c9db88741bad51100b4d24604.tar.gz |
lib:crypto: Do not build AES-CMAC if we use GnuTLS that supports it
This requires GnuTLS >= 3.6.5.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Aug 21 11:14:11 UTC 2019 on sn-devel-184
Diffstat (limited to 'lib/crypto')
-rw-r--r-- | lib/crypto/wscript_build | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/crypto/wscript_build b/lib/crypto/wscript_build index dcac8fcd30c..4f1665a7fd9 100644 --- a/lib/crypto/wscript_build +++ b/lib/crypto/wscript_build @@ -26,7 +26,8 @@ bld.SAMBA_SUBSYSTEM('LIBCRYPTO_AES', bld.SAMBA_SUBSYSTEM('LIBCRYPTO_AES_CMAC', source='aes_cmac_128.c', - deps='talloc') + deps='talloc', + enabled=not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC')) bld.SAMBA_SUBSYSTEM('LIBCRYPTO', source=''' @@ -53,7 +54,8 @@ bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO_AES_GCM', bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO_AES_CMAC', source='aes_cmac_128_test.c', autoproto='aes_cmac_test_proto.h', - deps='talloc') + deps='talloc', + enabled=not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC')) bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO', source='md4test.c', |