]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: add warning for using TLS libraries without 1.3 support
authorDaniel Stenberg <daniel@haxx.se>
Thu, 8 Feb 2024 14:11:55 +0000 (15:11 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 9 Feb 2024 15:01:39 +0000 (16:01 +0100)
Closes #12900

configure.ac

index db291afb00650d7b1ff4c2ca589173d0ffa4b637..cd0e2d07d8d16422de474b411fd412082d455abb 100644 (file)
@@ -4999,6 +4999,14 @@ AC_MSG_NOTICE([Configured to build curl/libcurl:
   Protocols:        ${SUPPORT_PROTOCOLS}
   Features:         ${SUPPORT_FEATURES}
 ])
+
+non13=`echo "$TLSCHOICE" | grep -Ei 'bearssl|secure-transport|mbedtls'`;
+if test -n "$non13"; then
+ cat >&2 << _EOF
+  WARNING: A selected TLS library ($TLSCHOICE) does not support TLS 1.3!
+_EOF
+fi
+
 if test -n "$experimental"; then
  cat >&2 << _EOF
   WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!