From 1fd8990d9d577de7ab1fad44d4776eabae1105d2 Mon Sep 17 00:00:00 2001 From: Lealem Amedie Date: Wed, 12 Aug 2026 10:00:48 -0600 Subject: [PATCH] Configure.ac: Limit wolfCLU features on FIPS version --- configure.ac | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 9bf3b9c245..ffe5bb3252 100644 --- a/configure.ac +++ b/configure.ac @@ -12241,10 +12241,13 @@ then ENABLED_CERTEXT="yes" fi - # Requires md5 - if test "$ENABLED_MD5" = "no" + # Has option for md5 hashing, enabled by default for non-FIPS 140-3 + if test "$ENABLED_FIPS" = "no" || test $HAVE_FIPS_VERSION -lt 5 then ENABLED_MD5="yes" + elif test "$enable_md5" != "yes" + then + ENABLED_MD5="no" fi # Requires aesctr @@ -12266,7 +12269,7 @@ then fi # Has option for signing with ED25519 - if test "$ENABLED_ED25519" = "no" + if test "$ENABLED_ED25519" = "no" && (test "$ENABLED_FIPS" = "no" || test $HAVE_FIPS_VERSION -ge 6) then ENABLED_ED25519=yes ENABLED_FEMATH=yes @@ -12295,7 +12298,12 @@ then # Uses alt name ENABLED_ALTNAMES="yes" - AM_CFLAGS="$AM_CFLAGS -DHAVE_OID_ENCODING -DWOLFSSL_NO_ASN_STRICT" + AM_CFLAGS="$AM_CFLAGS -DHAVE_OID_ENCODING" + + if test "$ENABLED_FIPS" = "no" + then + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_NO_ASN_STRICT" + fi # wolfCLU allows MD5 with wc_Signature*; lower the hash strength floor # when MD5 is compiled in.