samba/SOURCES/0190-lib-crypto-Only-build-AES-code-if-we-need-AES-CMAC.patch
2021-10-08 16:37:00 +00:00

30 lines
1.0 KiB
Diff

From bc018d1b01ae605472b83b9b6a5c0206830b49da Mon Sep 17 00:00:00 2001
From: Andreas Schneider <asn@samba.org>
Date: Tue, 10 Dec 2019 18:03:57 +0100
Subject: [PATCH 190/191] lib:crypto: Only build AES code if we need AES CMAC
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 6713617724bfe4cba633f0e61052a703c4ca9f3e)
---
lib/crypto/wscript_build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/crypto/wscript_build b/lib/crypto/wscript_build
index cd136165a0d..46ae5e9ba80 100644
--- a/lib/crypto/wscript_build
+++ b/lib/crypto/wscript_build
@@ -14,7 +14,8 @@ bld.SAMBA_SUBSYSTEM('GNUTLS_HELPERS',
bld.SAMBA_SUBSYSTEM('LIBCRYPTO_AES',
source='aes.c rijndael-alg-fst.c',
- deps='talloc')
+ deps='talloc',
+ enabled=not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC'))
bld.SAMBA_SUBSYSTEM('LIBCRYPTO_AES_CMAC',
source='aes_cmac_128.c',
--
2.23.0