diff options
author | Daiki Ueno <ueno@gnu.org> | 2020-04-26 19:26:57 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2020-05-04 14:26:16 +0200 |
commit | a8493e2f024f25c36d519347dec71c2998a479b2 (patch) | |
tree | 022f3b08ebbcf00b8ca64c5fdcc0c477cf7e8c40 /configure.ac | |
parent | de52bcc82e672f188e6d763cf95436738154f481 (diff) | |
download | gnutls-a8493e2f024f25c36d519347dec71c2998a479b2.tar.gz |
nettle: avoid manual backports of CFB8, CMAC, and XTS
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b5781fc58f..600a83819f 100644 --- a/configure.ac +++ b/configure.ac @@ -612,18 +612,26 @@ save_LIBS=$LIBS LIBS="$LIBS $NETTLE_LIBS" AC_CHECK_FUNCS(nettle_cfb8_encrypt) LIBS=$save_LIBS +AM_CONDITIONAL(NEED_CFB, [test "$ac_cv_func_nettle_cfb8_encrypt" != "yes"]) # Check if nettle has CMAC support +save_CFLAGS=$CFLAGS +CFLAGS="$CFLAGS $NETTLE_CFLAGS" +AC_CHECK_TYPES([union nettle_block8], , , [[#include <nettle/nettle-types.h>]]) +CFLAGS=$save_CFLAGS + save_LIBS=$LIBS LIBS="$LIBS $NETTLE_LIBS" AC_CHECK_FUNCS(nettle_cmac128_update) LIBS=$save_LIBS +AM_CONDITIONAL(NEED_CMAC, [test "$ac_cv_func_nettle_cmac128_update" != "yes"]) # Check if nettle has XTS support save_LIBS=$LIBS LIBS="$LIBS $NETTLE_LIBS" AC_CHECK_FUNCS(nettle_xts_encrypt_message) LIBS=$save_LIBS +AM_CONDITIONAL(NEED_XTS, [test "$ac_cv_func_nettle_xts_encrypt_message" != "yes"]) # Check for Gosthash94 with CryptoPro S-box support save_LIBS=$LIBS |