From dc65a9a27768209d90305217636071907cb39ab5 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 10 Apr 2017 11:45:26 -0700 Subject: [PATCH] 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. --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index b86f2307f..e75faae7a 100644 --- a/configure.ac +++ b/configure.ac @@ -151,6 +151,7 @@ then enable_camellia=yes enable_ripemd=yes enable_sha512=yes + enable_sha224=yes enable_sessioncerts=yes enable_keygen=yes enable_certgen=yes @@ -192,6 +193,9 @@ then enable_stunnel=yes enable_nginx=yes enable_pwdbased=yes + enable_aeskeywrap=yes + enable_x963kdf=yes + enable_scrypt=yes fi AM_CONDITIONAL([BUILD_DISTRO], [test "x$ENABLED_DISTRO" = "xyes"]) @@ -992,6 +996,12 @@ AC_ARG_ENABLE([ecccustcurves], if test "$ENABLED_ECCCUSTCURVES" = "yes" then 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