Skip to content

Commit 07f7672

Browse files
committed
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.
1 parent 1c1c556 commit 07f7672

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

configure.ac

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,7 @@ then
13231323
test "$enable_blake2s" = "" && enable_blake2s=yes
13241324
test "$enable_md2" = "" && enable_md2=yes
13251325
test "$enable_md4" = "" && enable_md4=yes
1326+
test "$enable_md5" = "" && enable_md5=yes
13261327
test "$enable_anon" = "" && enable_anon=yes
13271328
test "$enable_ssh" = "" && test "$enable_hmac" != "no" && enable_ssh=yes
13281329

@@ -4816,6 +4817,7 @@ fi
48164817
if test "$ENABLED_TLSV10" = "yes"
48174818
then
48184819
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALLOW_TLSV10"
4820+
enable_md5=yes
48194821
fi
48204822

48214823

@@ -4862,8 +4864,6 @@ then
48624864
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_NO_TLS12 -DNO_OLD_TLS"
48634865
fi
48644866

4865-
4866-
48674867
# STACK SIZE info for testwolfcrypt and examples
48684868
AC_ARG_ENABLE([stacksize],
48694869
[AS_HELP_STRING([--enable-stacksize],[Enable stack size info on examples (default: disabled)])],
@@ -5476,9 +5476,9 @@ AC_ARG_ENABLE([arc4],
54765476

54775477
# MD5
54785478
AC_ARG_ENABLE([md5],
5479-
[AS_HELP_STRING([--enable-md5],[Enable MD5 (default: enabled)])],
5479+
[AS_HELP_STRING([--enable-md5],[Enable MD5 (default: disabled)])],
54805480
[ ENABLED_MD5=$enableval ],
5481-
[ ENABLED_MD5=yes ]
5481+
[ ENABLED_MD5=no ]
54825482
)
54835483

54845484
# SHA
@@ -10188,7 +10188,8 @@ fi
1018810188
1018910189
if test "$ENABLED_OPENSSLEXTRA" = "yes"
1019010190
then
10191-
AM_CFLAGS="$AM_CFLAGS -DOPENSSL_EXTRA"
10191+
enable_md5=yes
10192+
AM_CFLAGS="$AM_CFLAGS -DOPENSSL_EXTRA"
1019210193
fi
1019310194
1019410195
if test "$ENABLED_OPENSSLEXTRA" = "x509small"

0 commit comments

Comments
 (0)