cmake: warn for OpenSSL versions missing TLS 1.3 support (revert)

We decided not to show warnings for this issue.

Also this:
```
CMake Warning at CMakeLists.txt:783 (message):
  OpenSSL does not support TLS 1.3.
```
as seen in #16483 with CMake 3.12.4, `OPENSSL_VERSION` is empty.
Perhaps detection isn't reliable? I haven't seen this so far with
mainline OpenSSL. An `if(OPENSSL_VERSION AND ...)` can fix it, if we
opt for this warning in the future.

Follow-up to #16122
This reverts commit 34c1c653fc #16120
Closes #16485
This commit is contained in:
Viktor Szakats 2025-02-26 00:49:25 +01:00
parent bc42010f66
commit 518543dec8
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -828,9 +828,6 @@ if(CURL_USE_OPENSSL)
set(_openssl "AmiSSL") set(_openssl "AmiSSL")
else() else()
set(_openssl "OpenSSL") 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()
endif() endif()