cmake: add warning for using TLS libraries without 1.3 support

Closes #12900
This commit is contained in:
Viktor Szakats 2024-02-08 22:45:55 +01:00 committed by Daniel Stenberg
parent 05104f826e
commit f8513ee62e
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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()