From 34c1c653fc475efb828658f900979596905c688e Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 28 Jan 2025 16:51:18 +0100 Subject: [PATCH] cmake: warn for OpenSSL versions missing TLS 1.3 support To match existing warnings for Secure Transport and BearSSL. OpenSSL 1.1.1 or upper are offering TLS 1.3 support. Ref: https://wiki.openssl.org/index.php/TLS1.3 Closes #16120 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d869882fe..0a81ef41e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -778,6 +778,9 @@ if(CURL_USE_OPENSSL) set(_openssl "AmiSSL") else() set(_openssl "OpenSSL") + if(OPENSSL_VERSION VERSION_LESS 1.1.1) + message(WARNING "OpenSSL ${OPENSSL_VERSION} does not support TLS 1.3.") + endif() endif() endif()