diff options
author | Brad King <brad.king@kitware.com> | 2024-09-23 18:48:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-09-26 14:10:48 (GMT) |
commit | 38390245a2ceebe6ece3859e887442b8cce01297 (patch) | |
tree | 65dc00fd6959fee4a12aa674dc65adcf1160fe34 /Source | |
parent | 5e1a59dc2ba9b3f532adf21f79ad0f51b514c08f (diff) | |
download | CMake-38390245a2ceebe6ece3859e887442b8cce01297.zip CMake-38390245a2ceebe6ece3859e887442b8cce01297.tar.gz CMake-38390245a2ceebe6ece3859e887442b8cce01297.tar.bz2 |
ctest: Require minimum TLS 1.2 by default
Issue: #25701
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestCurl.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestCurl.cxx b/Source/CTest/cmCTestCurl.cxx index d9dc3b2..b203a51 100644 --- a/Source/CTest/cmCTestCurl.cxx +++ b/Source/CTest/cmCTestCurl.cxx @@ -16,6 +16,7 @@ namespace { const bool TLS_VERIFY_DEFAULT = true; +const int TLS_VERSION_DEFAULT = CURL_SSLVERSION_TLSv1_2; } cmCTestCurl::cmCTestCurl(cmCTest* ctest) @@ -65,6 +66,9 @@ cmCTestCurlOpts::cmCTestCurlOpts(cmCTest* ctest) { this->TLSVersionOpt = cmCurlParseTLSVersion(ctest->GetCTestConfiguration("TLSVersion")); + if (!this->TLSVersionOpt.has_value()) { + this->TLSVersionOpt = TLS_VERSION_DEFAULT; + } std::string tlsVerify = ctest->GetCTestConfiguration("TLSVerify"); if (!tlsVerify.empty()) { |