Distro fix to enable SHA224 by default. Was causing Debian build error since SHA224 is enabled by default only for the x86_64 architecture. Updated --enable-distro option to include new features for aeskeywrap, x963kdf and scrypt. Changed the ECC custom curve option to enable all curve types when used with distro.

This commit is contained in:
David Garske
2017-04-10 11:45:26 -07:00
parent e8971c361a
commit dc65a9a277

View File

@ -151,6 +151,7 @@ then
enable_camellia=yes enable_camellia=yes
enable_ripemd=yes enable_ripemd=yes
enable_sha512=yes enable_sha512=yes
enable_sha224=yes
enable_sessioncerts=yes enable_sessioncerts=yes
enable_keygen=yes enable_keygen=yes
enable_certgen=yes enable_certgen=yes
@ -192,6 +193,9 @@ then
enable_stunnel=yes enable_stunnel=yes
enable_nginx=yes enable_nginx=yes
enable_pwdbased=yes enable_pwdbased=yes
enable_aeskeywrap=yes
enable_x963kdf=yes
enable_scrypt=yes
fi fi
AM_CONDITIONAL([BUILD_DISTRO], [test "x$ENABLED_DISTRO" = "xyes"]) AM_CONDITIONAL([BUILD_DISTRO], [test "x$ENABLED_DISTRO" = "xyes"])
@ -992,6 +996,12 @@ AC_ARG_ENABLE([ecccustcurves],
if test "$ENABLED_ECCCUSTCURVES" = "yes" if test "$ENABLED_ECCCUSTCURVES" = "yes"
then then
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CUSTOM_CURVES" AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CUSTOM_CURVES"
# For distro build, enable all curve types
if test "$ENABLED_DISTRO" = "yes"
then
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC_SECPR2 -DHAVE_ECC_SECPR3 -DHAVE_ECC_BRAINPOOL -DHAVE_ECC_KOBLITZ"
fi
fi fi