fix leanpsk w/ new defaults

This commit is contained in:
toddouska
2015-03-31 15:55:39 -07:00
parent a5f42cc9ca
commit d84ff83689

View File

@ -536,6 +536,12 @@ AC_ARG_ENABLE([sha512],
[ ENABLED_SHA512=$SHA512_DEFAULT ] [ ENABLED_SHA512=$SHA512_DEFAULT ]
) )
# lean pks does't need sha512
if test "$ENABLED_SHA512" = "yes"
then
ENABLED_SHA512=no
fi
if test "$ENABLED_SHA512" = "yes" if test "$ENABLED_SHA512" = "yes"
then then
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHA512 -DWOLFSSL_SHA384" AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHA512 -DWOLFSSL_SHA384"
@ -660,6 +666,12 @@ AC_ARG_ENABLE([ecc],
[ ENABLED_ECC=$ECC_DEFAULT ] [ ENABLED_ECC=$ECC_DEFAULT ]
) )
# lean pks does't need ecc
if test "$ENABLED_ECC" = "yes"
then
ENABLED_ECC=no
fi
if test "$ENABLED_ECC" = "yes" if test "$ENABLED_ECC" = "yes"
then then
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256 -DECC_SHAMIR" AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256 -DECC_SHAMIR"