You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: configure.ac
+24-2Lines changed: 24 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5631,9 +5631,26 @@ AC_ARG_ENABLE([dtls13],
5631
5631
)
5632
5632
if test "x$ENABLED_DTLS13" = "xyes"
5633
5633
then
5634
-
if test "x$ENABLED_DTLS" != "xyes" || test "x$ENABLED_TLS13" != "xyes"
5634
+
# DTLSv1.3 implies TLS 1.3 and DTLS; auto-enable, but don't
5635
+
# override explicit --disable.
5636
+
if test "x$enable_tls13" = "xno" || test "x$ENABLED_TLS13" = "xno"
5635
5637
then
5636
-
AC_MSG_ERROR([You need to enable both DTLS and TLSv1.3 to use DTLSv1.3])
5638
+
AC_MSG_ERROR([--enable-dtls13 requires TLS 1.3, but TLS 1.3 is disabled])
5639
+
fi
5640
+
if test "x$ENABLED_TLS13" != "xyes"
5641
+
then
5642
+
AC_MSG_NOTICE([DTLSv1.3 is enabled, enabling TLS 1.3])
5643
+
ENABLED_TLS13=yes
5644
+
fi
5645
+
if test "x$enable_dtls" = "xno"
5646
+
then
5647
+
AC_MSG_ERROR([--enable-dtls13 requires DTLS, but --disable-dtls was given])
5648
+
fi
5649
+
if test "x$ENABLED_DTLS" != "xyes"
5650
+
then
5651
+
AC_MSG_NOTICE([DTLSv1.3 is enabled, enabling DTLS])
5652
+
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DTLS"
5653
+
ENABLED_DTLS=yes
5637
5654
fi
5638
5655
if test "x$ENABLED_SEND_HRR_COOKIE" = "xundefined"
5639
5656
then
@@ -8134,6 +8151,11 @@ then
8134
8151
# disable TLS 1.3
8135
8152
ENABLED_TLS13=no
8136
8153
fi
8154
+
# DTLSv1.3 cannot survive a downgrade of TLS 1.3.
8155
+
if test "x$ENABLED_DTLS13" = "xyes" && test "x$ENABLED_TLS13" = "xno"
8156
+
then
8157
+
AC_MSG_ERROR([--enable-dtls13 requires TLS 1.3, but TLS 1.3 was disabled by an earlier prerequisite check (no key-exchange or signature algorithms reachable). Enable at least one of ECC, RSA+DH, Curve25519+Ed25519, Curve448+Ed448, PSK, or ML-KEM.])
8158
+
fi
8137
8159
if test "$ENABLED_TLS13" = "yes" && (test "x$ENABLED_ECC" = "xyes" || \
8138
8160
test "$ENABLED_DH" != "no" || test "x$ENABLED_MLKEM" = "xyes")
0 commit comments