From: Viktor Szakats Date: Tue, 28 Jan 2025 15:51:18 +0000 (+0100) Subject: cmake: warn for OpenSSL versions missing TLS 1.3 support X-Git-Tag: curl-8_12_0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34c1c653fc475efb828658f900979596905c688e;p=thirdparty%2Fcurl.git 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 --- 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()