From 02863d2e812862f5f34b87c3cafe54a0df815a4b Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Mon, 10 Oct 2022 16:37:38 -0500 Subject: [PATCH] configure.ac: when FIPS 140-3, disable AES-GCM streaming API, unless "dev". --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 68f9752a2..2df9bf662 100644 --- a/configure.ac +++ b/configure.ac @@ -4188,6 +4188,10 @@ AS_CASE([$FIPS_VERSION], AS_IF([test "$ENABLED_AESGCM" = "no" && (test "$FIPS_VERSION" != "dev" || test "$enable_aesgcm" != "no")], [ENABLED_AESGCM="yes"; AM_CFLAGS="$AM_CFLAGS -DHAVE_AESGCM"]) + # AES-GCM streaming isn't part of the current FIPS suite. + AS_IF([test "$ENABLED_AESGCM_STREAM" = "yes" && (test "$FIPS_VERSION" != "dev" || test "$enable_aesgcm_stream" != "yes")], + [ENABLED_AESGCM_STREAM="no"]) + # Old TLS requires MD5 + HMAC, which is not allowed under FIPS 140-3 AS_IF([test "$ENABLED_OLD_TLS" != "no"], [ENABLED_OLD_TLS="no"; AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"])