@@ -840,68 +840,15 @@ AC_ARG_ENABLE([all],
840840 )
841841if test "$ENABLED_ALL" = "yes"
842842then
843+ enable_all_crypto=yes
844+
843845 test "$enable_dtls" = "" && enable_dtls=yes
844846 if test "x$FIPS_VERSION" != "xv1"
845847 then
846848 test "$enable_tls13" = "" && enable_tls13=yes
847849 test "$enable_rsapss" = "" && enable_rsapss=yes
848850 fi
849851
850- # this set is also enabled by enable-all-crypto:
851- test "$enable_atomicuser" = "" && enable_atomicuser=yes
852- test "$enable_aesgcm" = "" && enable_aesgcm=yes
853- test "$enable_aesgcm_stream" = "" && test "$enable_aesgcm" = "yes" && enable_aesgcm_stream=yes
854- test "$enable_aesccm" = "" && enable_aesccm=yes
855- test "$enable_aesctr" = "" && enable_aesctr=yes
856- test "$enable_aeseax" = "" && enable_aeseax=yes
857- test "$enable_aesofb" = "" && enable_aesofb=yes
858- test "$enable_aescfb" = "" && enable_aescfb=yes
859- test "$enable_aescbc_length_checks" = "" && enable_aescbc_length_checks=yes
860- test "$enable_camellia" = "" && enable_camellia=yes
861- test "$enable_ripemd" = "" && enable_ripemd=yes
862- test "$enable_sha224" = "" && enable_sha224=yes
863- test "$enable_sha512" = "" && enable_sha512=yes
864- test "$enable_sha3" = "" && enable_sha3=yes
865- test "$enable_shake128" = "" && enable_shake128=yes
866- test "$enable_shake256" = "" && enable_shake256=yes
867- test "$enable_sessioncerts" = "" && enable_sessioncerts=yes
868- test "$enable_keygen" = "" && enable_keygen=yes
869- test "$enable_certgen" = "" && enable_certgen=yes
870- test "$enable_certreq" = "" && enable_certreq=yes
871- test "$enable_certext" = "" && enable_certext=yes
872- test "$enable_sep" = "" && enable_sep=yes
873- test "$enable_hkdf" = "" && enable_hkdf=yes
874- test "$enable_curve25519" = "" && enable_curve25519=yes
875- test "$enable_curve448" = "" && enable_curve448=yes
876- test "$enable_fpecc" = "" && test "$enable_ecc" != "no" && enable_fpecc=yes
877- test "$enable_eccencrypt" = "" && test "$enable_ecc" != "no" && enable_eccencrypt=yes
878- test "$enable_psk" = "" && enable_psk=yes
879- test "$enable_cmac" = "" && enable_cmac=yes
880- test "$enable_siphash" = "" && enable_siphash=yes
881- test "$enable_ocsp" = "" && enable_ocsp=yes
882- test "$enable_ocspstapling" = "" && test "$enable_ocsp" != "no" && enable_ocspstapling=yes
883- test "$enable_ocspstapling2" = "" && test "$enable_ocsp" != "no" && enable_ocspstapling2=yes
884- test "$enable_crl" = "" && enable_crl=yes
885- test "$enable_supportedcurves" = "" && enable_supportedcurves=yes
886- test "$enable_tlsx" = "" && enable_tlsx=yes
887- test "$enable_pwdbased" = "" && enable_pwdbased=yes
888- test "$enable_aeskeywrap" = "" && enable_aeskeywrap=yes
889- test "$enable_x963kdf" = "" && enable_x963kdf=yes
890- test "$enable_scrypt" = "" && test "$enable_hmac" != "no" && enable_scrypt=yes
891- test "$enable_indef" = "" && enable_indef=yes
892- test "$enable_enckeys" = "" && enable_enckeys=yes
893- test "$enable_hashflags" = "" && enable_hashflags=yes
894- test "$enable_defaultdhparams" = "" && enable_defaultdhparams=yes
895- test "$enable_base64encode" = "" && enable_base64encode=yes
896- test "$enable_base16" = "" && enable_base16=yes
897- test "$enable_arc4" = "" && enable_arc4=yes
898- test "$enable_blake2" = "" && enable_blake2=yes
899- test "$enable_blake2s" = "" && enable_blake2s=yes
900- test "$enable_md2" = "" && enable_md2=yes
901- test "$enable_md4" = "" && enable_md4=yes
902- test "$enable_anon" = "" && enable_anon=yes
903- test "$enable_ssh" = "" && test "$enable_hmac" != "no" && enable_ssh=yes
904-
905852 test "$enable_savesession" = "" && enable_savesession=yes
906853 test "$enable_savecert" = "" && enable_savecert=yes
907854 test "$enable_postauth" = "" && enable_postauth=yes
@@ -922,20 +869,12 @@ then
922869
923870 if test "$ENABLED_LINUXKM_DEFAULTS" != "yes"
924871 then
925- test "$enable_compkey" = "" && enable_compkey=yes
926872 test "$enable_quic" = "" && test "$enable_cryptonly" != "yes" && enable_quic=yes
927873 AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_IO -DHAVE_IO_TIMEOUT"
928874 fi
929875
930- # sp-math is incompatible with opensslextra, ECC custom curves, and DSA.
931876 if test "$ENABLED_SP_MATH" = "no"
932877 then
933- test "$enable_dsa" = "" && test "$enable_sha" != "no" && enable_dsa=yes
934- if test "$ENABLED_FIPS" = "no" || test "$HAVE_FIPS_VERSION" -le 5; then
935- test "$enable_ecccustcurves" = "" && enable_ecccustcurves=yes
936- test "$enable_brainpool" = "" && enable_brainpool=yes
937- fi
938- test "$enable_srp" = "" && enable_srp=yes
939878 # linuxkm is incompatible with opensslextra and its dependents.
940879 if test "$ENABLED_LINUXKM_DEFAULTS" != "yes"
941880 then
@@ -964,61 +903,19 @@ then
964903
965904 if test "$ENABLED_FIPS" = "no"
966905 then
967- test "$enable_cryptocb" = "" && enable_cryptocb=yes
968- test "$enable_pkcallbacks" = "" && enable_pkcallbacks=yes
969- test "$enable_xchacha" = "" && test "$enable_chacha" != "no" && enable_xchacha=yes
970906 test "$enable_scep" = "" && enable_scep=yes
971- test "$enable_pkcs7" = "" && enable_pkcs7=yes
972- test "$enable_nullcipher" = "" && enable_nullcipher=yes
973907 test "$enable_mcast" = "" && enable_mcast=yes
974- test "$enable_ed25519" = "" && enable_ed25519=yes
975- test "$enable_ed25519_stream" = "" && test "$enable_ed25519" != "no" && enable_ed25519_stream=yes
976- test "$enable_ed448" = "" && enable_ed448=yes
977- test "$enable_ed448_stream" = "" && test "$enable_ed448" != "no" && enable_ed448_stream=yes
978908
979909 if test "$ENABLED_LINUXKM_DEFAULTS" != "yes"
980910 then
981911 # these use DES3:
982912 test "$enable_stunnel" = "" && enable_stunnel=yes
983913 test "$enable_curl" = "" && enable_curl=yes
984914 test "$enable_tcpdump" = "" && enable_tcpdump=yes
985-
986- test "$enable_eccsi" = "" && test "$enable_ecc" != "no" && enable_eccsi=yes
987- test "$enable_sakke" = "" && test "$enable_ecc" != "no" && enable_sakke=yes
988915 fi
989916 fi
990917
991- if test "$ENABLED_FIPS" = "no" || test "$HAVE_FIPS_VERSION" -ge 6 || test "$FIPS_VERSION" = "v5-dev"; then
992- test "$enable_aesxts" = "" && enable_aesxts=yes
993- test "$enable_aesxts_stream" = "" && test "$enable_aesxts" = "yes" && (test "$enable_armasm" = "" || test "$enable_armasm" = "no") && enable_aesxts_stream=yes
994- test "$enable_aessiv" = "" && enable_aessiv=yes
995- fi
996-
997- if test "$ENABLED_FIPS" = "no" || test "$HAVE_FIPS_VERSION" -le 5; then
998- test "$enable_des3" = "" && enable_des3=yes
999- fi
1000-
1001- # Enable DH const table speedups (eliminates `-lm` math lib dependency)
1002- AM_CFLAGS="$AM_CFLAGS -DHAVE_FFDHE_2048 -DHAVE_FFDHE_3072"
1003- DEFAULT_MAX_CLASSIC_ASYM_KEY_BITS=4096
1004-
1005- # Enable multiple attribute additions such as DC
1006- AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_MULTI_ATTRIB"
1007-
1008- # Enable AES Decrypt, AES ECB
1009- AM_CFLAGS="$AM_CFLAGS -DHAVE_AES_DECRYPT -DHAVE_AES_ECB"
1010-
1011- # Enable Alt Names, DER Load, Keep Certs, CRL IO with Timeout
1012- AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALT_NAMES -DWOLFSSL_DER_LOAD -DKEEP_OUR_CERT -DKEEP_PEER_CERT"
1013-
1014- # Enable DH Extra
1015- AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DH_EXTRA"
1016-
1017- # Enable deterministic ECC signing API with variant
1018- AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ECDSA_DETERMINISTIC_K_VARIANT"
1019-
1020- # Store issuer name components when parsing certificates.
1021- AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_ISSUER_NAMES"
918+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DER_LOAD -DKEEP_OUR_CERT -DKEEP_PEER_CERT"
1022919
1023920 # Certificate extensions and alt. names for FPKI use
1024921 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SUBJ_DIR_ATTR -DWOLFSSL_FPKI -DWOLFSSL_SUBJ_INFO_ACC"
@@ -1028,15 +925,6 @@ then
1028925
1029926 # More thorough error queue usage.
1030927 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_VERBOSE_ERRORS"
1031-
1032- # enable all applicable assembly accelerations
1033- if test "$ENABLED_ASM" != "no" &&
1034- test "$enable_sp_asm" != "no" &&
1035- test "$enable_all_asm" = "" &&
1036- test "$ENABLED_LINUXKM_DEFAULTS" = "no"
1037- then
1038- enable_all_asm=yes
1039- fi
1040928fi
1041929
1042930
@@ -1108,6 +996,7 @@ then
1108996 test "$enable_compkey" = "" && enable_compkey=yes
1109997 fi
1110998
999+ # sp-math is incompatible with opensslextra, ECC custom curves, and DSA.
11111000 if test "$ENABLED_SP_MATH" = "no"
11121001 then
11131002 test "$enable_dsa" = "" && test "$enable_sha" != "no" && enable_dsa=yes
@@ -1147,8 +1036,7 @@ then
11471036 test "$enable_des3" = "" && enable_des3=yes
11481037 fi
11491038
1150- # Enable AES Decrypt, AES ECB, Alt Names, DER Load
1151- AM_CFLAGS="$AM_CFLAGS -DHAVE_AES_DECRYPT -DHAVE_AES_ECB -DWOLFSSL_ALT_NAMES -DWOLFSSL_DER_LOAD"
1039+ AM_CFLAGS="$AM_CFLAGS -DHAVE_AES_DECRYPT -DHAVE_AES_ECB -DWOLFSSL_ALT_NAMES"
11521040
11531041 # Enable DH const table speedups (eliminates `-lm` math lib dependency)
11541042 AM_CFLAGS="$AM_CFLAGS -DHAVE_FFDHE_2048 -DHAVE_FFDHE_3072"
@@ -1172,7 +1060,7 @@ then
11721060 test "$enable_all_asm" = "" &&
11731061 test "$ENABLED_LINUXKM_DEFAULTS" = "no"
11741062 then
1175- enable_all_asm=yes
1063+ enable_all_asm=yes
11761064 fi
11771065fi
11781066
@@ -2873,46 +2761,46 @@ if test "$ENABLED_ALL_ASM" != "no"
28732761then
28742762 if test "$ENABLED_ASM" = "no"
28752763 then
2876- AC_MSG_ERROR ( [ --enable-all-asm is incompatible with --disable-asm] )
2764+ AC_MSG_ERROR ( [ --enable-all-asm is incompatible with --disable-asm] )
28772765 fi
28782766
28792767 if test "$enable_sp_asm" = "no"
28802768 then
2881- AC_MSG_ERROR ( [ --enable-all-asm is incompatible with --disable-sp-asm] )
2769+ AC_MSG_ERROR ( [ --enable-all-asm is incompatible with --disable-sp-asm] )
28822770 fi
28832771
28842772 if test "$enable_intelasm" = "no"
28852773 then
2886- AC_MSG_ERROR ( [ --enable-all-asm is incompatible with --disable-intelasm] )
2774+ AC_MSG_ERROR ( [ --enable-all-asm is incompatible with --disable-intelasm] )
28872775 fi
28882776
28892777 if test "$enable_armasm" = "no"
28902778 then
2891- AC_MSG_ERROR ( [ --enable-all-asm is incompatible with --disable-armasm] )
2779+ AC_MSG_ERROR ( [ --enable-all-asm is incompatible with --disable-armasm] )
28922780 fi
28932781
28942782 if test "$ENABLED_SP" != "no"
28952783 then
2896- ENABLED_SP_ASM=yes
2897- if test "$ENABLED_SP" = ""
2898- then
2784+ ENABLED_SP_ASM=yes
2785+ if test "$ENABLED_SP" = ""
2786+ then
28992787 ENABLED_SP=yes
2900- fi
2788+ fi
29012789 fi
29022790
29032791 case "$host_cpu" in
2904- *x86_64*|*amd64*)
2905- if test "$enable_intelasm" = ""
2906- then
2907- enable_intelasm=yes
2908- fi
2909- ;;
2910- *aarch64*|*arm*|*cortex*)
2911- if test "$enable_armasm" = ""
2912- then
2913- enable_armasm=yes
2914- fi
2915- ;;
2792+ *x86_64*|*amd64*)
2793+ if test "$enable_intelasm" = ""
2794+ then
2795+ enable_intelasm=yes
2796+ fi
2797+ ;;
2798+ *aarch64*|*arm*|*cortex*)
2799+ if test "$enable_armasm" = ""
2800+ then
2801+ enable_armasm=yes
2802+ fi
2803+ ;;
29162804 esac
29172805fi
29182806
0 commit comments