From: Viktor Szakats Date: Thu, 8 Feb 2024 21:45:55 +0000 (+0100) Subject: cmake: add warning for using TLS libraries without 1.3 support X-Git-Tag: curl-8_7_0~189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8513ee62ec72af996139d2756beeac8a828afd8;p=thirdparty%2Fcurl.git cmake: add warning for using TLS libraries without 1.3 support Closes #12900 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b5ea67c2a..2194a6598a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()