file(DOWNLOAD/UPLOAD): Require minimum TLS 1.2 by default

Fixes: #25701
This commit is contained in:
Brad King
2024-09-23 14:47:04 -04:00
parent 0acff8e622
commit 5e1a59dc2b
8 changed files with 39 additions and 8 deletions

View File

@@ -7,6 +7,11 @@ Specify the default value for the :command:`file(DOWNLOAD)` and
:command:`file(UPLOAD)` commands' ``TLS_VERSION`` option.
If this variable is not set, the commands check the
:envvar:`CMAKE_TLS_VERSION` environment variable.
If neither is set, the default is TLS 1.2.
.. versionchanged:: 3.31
The default is TLS 1.2.
Previously, no minimum version was enforced by default.
The value may be one of: