From f8513ee62ec72af996139d2756beeac8a828afd8 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 8 Feb 2024 22:45:55 +0100 Subject: [PATCH] cmake: add warning for using TLS libraries without 1.3 support Closes #12900 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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()