]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: add warning for using TLS libraries without 1.3 support
authorViktor Szakats <commit@vsz.me>
Thu, 8 Feb 2024 21:45:55 +0000 (22:45 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 9 Feb 2024 15:01:45 +0000 (16:01 +0100)
Closes #12900

CMakeLists.txt

index 1b5ea67c2af69c17c50c0b63fd92fe73c8ee1f2e..2194a6598a2c92e7f529605727726d3cca21117c 100644 (file)
@@ -720,6 +720,12 @@ if(USE_MSH3)
   list(APPEND CURL_LIBS ${MSH3_LIBRARIES})
 endif()
 
+if(USE_MBEDTLS OR
+   USE_BEARSSL OR
+   USE_SECTRANSP)
+  message(WARNING "A selected TLS library does not support TLS 1.3.")
+endif()
+
 if(CURL_WITH_MULTI_SSL AND (USE_NGTCP2 OR USE_QUICHE OR USE_MSH3))
   message(FATAL_ERROR "MultiSSL cannot be enabled with HTTP/3 and vice versa.")
 endif()