@@ -4442,12 +4442,12 @@ AC_ARG_ENABLE([curve25519],
4442
4442
[ ENABLED_CURVE25519=no ]
4443
4443
)
4444
4444
4445
- if test "$ENABLED_QUIC " = "yes " && test "$ENABLED_CURVE25519 " = "no " && test "$ENABLED_FIPS" = "no"
4445
+ if test "$ENABLED_CURVE25519 " = "no " && test "$ENABLED_QUIC " = "yes " && test "$ENABLED_FIPS" = "no"
4446
4446
then
4447
4447
ENABLED_CURVE25519=yes
4448
4448
fi
4449
4449
4450
- if test "$ENABLED_OPENSSH" = "yes" && test "x$ENABLED_FIPS" = "xno"
4450
+ if test "$ENABLED_CURVE25519" = "no" && test "$ ENABLED_OPENSSH" = "yes" && test "x$ENABLED_FIPS" = "xno"
4451
4451
then
4452
4452
ENABLED_CURVE25519="yes"
4453
4453
fi
@@ -4464,18 +4464,6 @@ then
4464
4464
if test "$ENABLED_CURVE25519" = "no128bit" || test "$ENABLED_32BIT" = "yes"
4465
4465
then
4466
4466
AM_CFLAGS="$AM_CFLAGS -DNO_CURVED25519_128BIT"
4467
- ENABLED_CURVE25519=yes
4468
- fi
4469
-
4470
- if test "$ENABLED_CURVE25519" = "noasm"
4471
- then
4472
- AM_CFLAGS="$AM_CFLAGS -DNO_CURVED25519_X64"
4473
- fi
4474
-
4475
- if test "$ENABLED_CURVE25519" = "yes" && test "$ENABLED_LINUXKM_DEFAULTS" = "yes"
4476
- then
4477
- ENABLED_CURVE25519=noasm
4478
- AM_CFLAGS="$AM_CFLAGS -DNO_CURVED25519_X64"
4479
4467
fi
4480
4468
4481
4469
AM_CFLAGS="$AM_CFLAGS -DHAVE_CURVE25519"
@@ -4496,9 +4484,9 @@ AC_ARG_ENABLE([ed25519-stream],
4496
4484
[ ENABLED_ED25519_STREAM=no ]
4497
4485
)
4498
4486
4499
-
4500
- if (test "$ENABLED_OPENSSH" = "yes" && test "x$ENABLED_FIPS" = "xno") || \
4501
- test "$ENABLED_CHRONY" = "yes"
4487
+ if test "$ENABLED_ED25519" = "no" && \
4488
+ ( (test "$ENABLED_OPENSSH" = "yes" && test "x$ENABLED_FIPS" = "xno") || \
4489
+ test "$ENABLED_CHRONY" = "yes")
4502
4490
then
4503
4491
ENABLED_ED25519="yes"
4504
4492
fi
@@ -5624,7 +5612,7 @@ AS_CASE([$FIPS_VERSION],
5624
5612
AS_IF ( [ test "$ENABLED_ECC_SHAMIR" = "yes"] ,
5625
5613
[ AM_CFLAGS="$AM_CFLAGS -DECC_SHAMIR"] ) ] )
5626
5614
5627
- AS_IF ( [ test "x $ENABLED_ED25519" ! = "xyes " &&
5615
+ AS_IF ( [ test "$ENABLED_ED25519" = "no " &&
5628
5616
(test "$FIPS_VERSION" != "dev" || test "$enable_ed25519" != "no")] ,
5629
5617
[ ENABLED_ED25519="yes"; AM_CFLAGS="$AM_CFLAGS -DHAVE_ED25519 -DHAVE_ED25519_KEY_IMPORT"] )
5630
5618
@@ -9811,6 +9799,21 @@ then
9811
9799
ENABLED_OPENSSLEXTRA="yes"
9812
9800
fi
9813
9801
9802
+ if test "$ENABLED_CURVE25519" != "no" && test "$ENABLED_LINUXKM_DEFAULTS" = "yes"
9803
+ then
9804
+ ENABLED_CURVE25519=noasm
9805
+ fi
9806
+
9807
+ if test "$ENABLED_ED25519" != "no" && test "$ENABLED_LINUXKM_DEFAULTS" = "yes"
9808
+ then
9809
+ ENABLED_ED25519=noasm
9810
+ fi
9811
+
9812
+ if test "$ENABLED_CURVE25519" = "noasm" || test "$ENABLED_ED25519" = "noasm"
9813
+ then
9814
+ AM_CFLAGS="$AM_CFLAGS -DNO_CURVED25519_X64"
9815
+ fi
9816
+
9814
9817
if test "$ENABLED_ED25519" != "no"
9815
9818
then
9816
9819
if test "$ENABLED_ED25519" = "small" || test "$ENABLED_LOWRESOURCE" = "yes"
@@ -9919,7 +9922,7 @@ AS_IF([test "x$ENABLED_CERT_REQ" = "xyes" && \
9919
9922
[ AC_MSG_ERROR ( [ cannot use certreq without certgen.] ) ] )
9920
9923
9921
9924
# ed25519 requires sha512
9922
- AS_IF ( [ test "x $ENABLED_ED25519" = "xyes " && \
9925
+ AS_IF ( [ test "$ENABLED_ED25519" ! = "no " && \
9923
9926
test "x$ENABLED_SHA512" = "xno" && \
9924
9927
test "x$ENABLED_32BIT" = "xno"] ,
9925
9928
[ AC_MSG_ERROR ( [ cannot enable ed25519 without enabling sha512.] ) ] )
@@ -9985,10 +9988,9 @@ AS_IF([test "x$ENABLED_CERTGEN" = "xyes"],
9985
9988
AS_IF ( [ test "x$ENABLED_CERTEXT" = "xyes"] ,
9986
9989
[ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_EXT"] )
9987
9990
9988
- AS_IF ( [ test "x$ENABLED_ED25519" = "xyes"] ,
9989
- [ AM_CFLAGS="$AM_CFLAGS -DHAVE_ED25519"] )
9990
- AS_IF ( [ test "x$ENABLED_ED25519" = "xyes"] ,
9991
- [ AM_CCASFLAGS="$AM_CCASFLAGS -DHAVE_ED25519"] )
9991
+ AS_IF ( [ test "$ENABLED_ED25519" != "no"] ,
9992
+ [ AM_CFLAGS="$AM_CFLAGS -DHAVE_ED25519"
9993
+ AM_CCASFLAGS="$AM_CCASFLAGS -DHAVE_ED25519"] )
9992
9994
9993
9995
AS_IF ( [ test "x$ENABLED_ED25519_SMALL" = "xyes"] ,
9994
9996
[ AM_CFLAGS="$AM_CFLAGS -DED25519_SMALL"] )
@@ -10522,12 +10524,12 @@ AM_CONDITIONAL([BUILD_BLAKE2S],[test "x$ENABLED_BLAKE2S" = "xyes" || test "x$ENA
10522
10524
AM_CONDITIONAL([ BUILD_SHA512] ,[ test "x$ENABLED_SHA512" = "xyes" || test "x$ENABLED_SHA384" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
10523
10525
AM_CONDITIONAL([ BUILD_DSA] ,[ test "x$ENABLED_DSA" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
10524
10526
AM_CONDITIONAL([ BUILD_ECC] ,[ test "x$ENABLED_ECC" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
10525
- AM_CONDITIONAL([ BUILD_ED25519] ,[ test "x $ENABLED_ED25519" = "xyes " || test "x$ENABLED_USERSETTINGS" = "xyes"] )
10527
+ AM_CONDITIONAL([ BUILD_ED25519] ,[ test "$ENABLED_ED25519" ! = "no " || test "x$ENABLED_USERSETTINGS" = "xyes"] )
10526
10528
AM_CONDITIONAL([ BUILD_ED25519_SMALL] ,[ test "x$ENABLED_ED25519_SMALL" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
10527
10529
AM_CONDITIONAL([ BUILD_FEMATH] , [ test "x$ENABLED_FEMATH" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
10528
10530
AM_CONDITIONAL([ BUILD_GEMATH] , [ test "x$ENABLED_GEMATH" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
10529
10531
AM_CONDITIONAL([ BUILD_CURVE25519] ,[ test "$ENABLED_CURVE25519" != "no" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
10530
- AM_CONDITIONAL([ BUILD_CURVE25519_INTELASM] ,[ test "$ENABLED_CURVE25519" != "noasm" && test "$ENABLED_INTELASM" = "yes"] )
10532
+ AM_CONDITIONAL([ BUILD_CURVE25519_INTELASM] ,[ test "$ENABLED_CURVE25519" != "noasm" && test "$ENABLED_ED25519" != "noasm" && test "$ ENABLED_INTELASM" = "yes"] )
10531
10533
AM_CONDITIONAL([ BUILD_CURVE25519_SMALL] ,[ test "x$ENABLED_CURVE25519_SMALL" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
10532
10534
AM_CONDITIONAL([ BUILD_ED448] ,[ test "x$ENABLED_ED448" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
10533
10535
AM_CONDITIONAL([ BUILD_ED448_SMALL] ,[ test "x$ENABLED_ED448_SMALL" = "xyes"] )
0 commit comments