Disable MD5 by default

Disable the use of MD5 by default. Add the conditional use of MD5 when
--enable-all-crypto is present. Add the use of MD5 when
--enable-opensslextra is present. Add the use of MD5 when
--enable-tlsv10 is present.
pull/8895/head
Alex Lanzano 2025-06-18 10:10:00 -04:00
parent 1c1c556e5e
commit 07f76723e2
1 changed files with 6 additions and 5 deletions

View File

@ -1323,6 +1323,7 @@ then
test "$enable_blake2s" = "" && enable_blake2s=yes test "$enable_blake2s" = "" && enable_blake2s=yes
test "$enable_md2" = "" && enable_md2=yes test "$enable_md2" = "" && enable_md2=yes
test "$enable_md4" = "" && enable_md4=yes test "$enable_md4" = "" && enable_md4=yes
test "$enable_md5" = "" && enable_md5=yes
test "$enable_anon" = "" && enable_anon=yes test "$enable_anon" = "" && enable_anon=yes
test "$enable_ssh" = "" && test "$enable_hmac" != "no" && enable_ssh=yes test "$enable_ssh" = "" && test "$enable_hmac" != "no" && enable_ssh=yes
@ -4816,6 +4817,7 @@ fi
if test "$ENABLED_TLSV10" = "yes" if test "$ENABLED_TLSV10" = "yes"
then then
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALLOW_TLSV10" AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALLOW_TLSV10"
enable_md5=yes
fi fi
@ -4862,8 +4864,6 @@ then
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_NO_TLS12 -DNO_OLD_TLS" AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_NO_TLS12 -DNO_OLD_TLS"
fi fi
# STACK SIZE info for testwolfcrypt and examples # STACK SIZE info for testwolfcrypt and examples
AC_ARG_ENABLE([stacksize], AC_ARG_ENABLE([stacksize],
[AS_HELP_STRING([--enable-stacksize],[Enable stack size info on examples (default: disabled)])], [AS_HELP_STRING([--enable-stacksize],[Enable stack size info on examples (default: disabled)])],
@ -5476,9 +5476,9 @@ AC_ARG_ENABLE([arc4],
# MD5 # MD5
AC_ARG_ENABLE([md5], AC_ARG_ENABLE([md5],
[AS_HELP_STRING([--enable-md5],[Enable MD5 (default: enabled)])], [AS_HELP_STRING([--enable-md5],[Enable MD5 (default: disabled)])],
[ ENABLED_MD5=$enableval ], [ ENABLED_MD5=$enableval ],
[ ENABLED_MD5=yes ] [ ENABLED_MD5=no ]
) )
# SHA # SHA
@ -10188,7 +10188,8 @@ fi
if test "$ENABLED_OPENSSLEXTRA" = "yes" if test "$ENABLED_OPENSSLEXTRA" = "yes"
then then
AM_CFLAGS="$AM_CFLAGS -DOPENSSL_EXTRA" enable_md5=yes
AM_CFLAGS="$AM_CFLAGS -DOPENSSL_EXTRA"
fi fi
if test "$ENABLED_OPENSSLEXTRA" = "x509small" if test "$ENABLED_OPENSSLEXTRA" = "x509small"