mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
configure.ac: add --enable-brainpool, default on unless disable-ecccustcurves, and use it to enable brainpool in enable-all and enable-all-crypto, subject to override.
This commit is contained in:
31
configure.ac
31
configure.ac
@ -745,6 +745,7 @@ then
|
|||||||
then
|
then
|
||||||
test "$enable_dsa" = "" && enable_dsa=yes
|
test "$enable_dsa" = "" && enable_dsa=yes
|
||||||
test "$enable_ecccustcurves" = "" && enable_ecccustcurves=yes
|
test "$enable_ecccustcurves" = "" && enable_ecccustcurves=yes
|
||||||
|
test "$enable_brainpool" = "" && enable_brainpool=yes
|
||||||
test "$enable_srp" = "" && enable_srp=yes
|
test "$enable_srp" = "" && enable_srp=yes
|
||||||
# linuxkm is incompatible with opensslextra and its dependents.
|
# linuxkm is incompatible with opensslextra and its dependents.
|
||||||
if test "$ENABLED_LINUXKM_DEFAULTS" != "yes"
|
if test "$ENABLED_LINUXKM_DEFAULTS" != "yes"
|
||||||
@ -909,6 +910,7 @@ then
|
|||||||
then
|
then
|
||||||
test "$enable_dsa" = "" && enable_dsa=yes
|
test "$enable_dsa" = "" && enable_dsa=yes
|
||||||
test "$enable_ecccustcurves" = "" && enable_ecccustcurves=yes
|
test "$enable_ecccustcurves" = "" && enable_ecccustcurves=yes
|
||||||
|
test "$enable_brainpool" = "" && enable_brainpool=yes
|
||||||
test "$enable_srp" = "" && enable_srp=yes
|
test "$enable_srp" = "" && enable_srp=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -954,9 +956,6 @@ then
|
|||||||
|
|
||||||
# Store issuer name components when parsing certificates.
|
# Store issuer name components when parsing certificates.
|
||||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_ISSUER_NAMES"
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_ISSUER_NAMES"
|
||||||
|
|
||||||
# Enable Brainpool
|
|
||||||
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC_BRAINPOOL"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# liboqs
|
# liboqs
|
||||||
@ -3047,7 +3046,6 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# ECC Minimum Key Size
|
# ECC Minimum Key Size
|
||||||
ENABLED_ECCMINSZ=224
|
ENABLED_ECCMINSZ=224
|
||||||
AC_ARG_WITH([eccminsz],
|
AC_ARG_WITH([eccminsz],
|
||||||
@ -3071,6 +3069,30 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Brainpool (depends on _ECCCUSTCURVES)
|
||||||
|
if test "$ENABLED_ECCCUSTCURVES" != "no"
|
||||||
|
then
|
||||||
|
BRAINPOOL_DEFAULT=yes
|
||||||
|
else
|
||||||
|
BRAINPOOL_DEFAULT=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_ARG_ENABLE([brainpool],
|
||||||
|
[AS_HELP_STRING([--enable-brainpool],[Enable Brainpool ECC curves (default: ${BRAINPOOL_DEFAULT})])],
|
||||||
|
[ ENABLED_BRAINPOOL=$enableval ],
|
||||||
|
[ ENABLED_BRAINPOOL="$BRAINPOOL_DEFAULT" ]
|
||||||
|
)
|
||||||
|
|
||||||
|
if test "$ENABLED_BRAINPOOL" != "no"
|
||||||
|
then
|
||||||
|
if test "$ENABLED_ECCCUSTCURVES" = "no"
|
||||||
|
then
|
||||||
|
AC_MSG_ERROR([cannot enable Brainpool without enabling ecccustcurves.])
|
||||||
|
fi
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC_BRAINPOOL"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# for using memory optimization setting on both curve25519 and ed25519
|
# for using memory optimization setting on both curve25519 and ed25519
|
||||||
ENABLED_CURVE25519_SMALL=no
|
ENABLED_CURVE25519_SMALL=no
|
||||||
ENABLED_ED25519_SMALL=no
|
ENABLED_ED25519_SMALL=no
|
||||||
@ -8624,6 +8646,7 @@ echo " * ECC Custom Curves: $ENABLED_ECCCUSTCURVES"
|
|||||||
echo " * ECC Minimum Bits: $ENABLED_ECCMINSZ"
|
echo " * ECC Minimum Bits: $ENABLED_ECCMINSZ"
|
||||||
echo " * FPECC: $ENABLED_FPECC"
|
echo " * FPECC: $ENABLED_FPECC"
|
||||||
echo " * ECC_ENCRYPT: $ENABLED_ECC_ENCRYPT"
|
echo " * ECC_ENCRYPT: $ENABLED_ECC_ENCRYPT"
|
||||||
|
echo " * Brainpool: $ENABLED_BRAINPOOL"
|
||||||
echo " * CURVE25519: $ENABLED_CURVE25519"
|
echo " * CURVE25519: $ENABLED_CURVE25519"
|
||||||
echo " * ED25519: $ENABLED_ED25519"
|
echo " * ED25519: $ENABLED_ED25519"
|
||||||
echo " * ED25519 streaming: $ENABLED_ED25519_STREAM"
|
echo " * ED25519 streaming: $ENABLED_ED25519_STREAM"
|
||||||
|
Reference in New Issue
Block a user