Undo the logic around enable sha as its enabled by default already.

This commit is contained in:
Anthony Hu
2022-03-14 16:29:13 -04:00
parent 821e293ed4
commit b3319bd952

View File

@@ -3512,26 +3512,21 @@ AC_ARG_ENABLE([md5],
[ ENABLED_MD5=yes ]
)
# SHA
AC_ARG_ENABLE([sha],
[AS_HELP_STRING([--enable-sha],[Enable SHA (default: enabled)])],
[ ENABLED_SHA=$enableval ],
[ ENABLED_SHA=yes ]
)
if test "$ENABLED_WOLFENGINE" = "no"
if test "$ENABLED_SHA" = "no"
then
if test "$ENABLED_SHA" = "no"
AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
else
# turn off SHA if leanpsk or leantls on
if test "$ENABLED_LEANPSK" = "yes" || test "$ENABLED_LEANTLS" = "yes"
then
AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
else
# turn off SHA if leanpsk or leantls on
if test "$ENABLED_LEANPSK" = "yes" || test "$ENABLED_LEANTLS" = "yes"
then
AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
ENABLED_SHA=no
fi
ENABLED_SHA=no
fi
fi