summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-09-20 21:40:02 (GMT)
committerBrad King <brad.king@kitware.com>2024-09-24 12:37:23 (GMT)
commit4e62bc943c74cbc564209a42bb84605f0771bca7 (patch)
treedc774f1d938d0b284e1a30d9a037d0993f9b3f55 /Source
parent8e92ee34f6ba4058ca7dc793009f98f2096d8f38 (diff)
downloadCMake-4e62bc943c74cbc564209a42bb84605f0771bca7.zip
CMake-4e62bc943c74cbc564209a42bb84605f0771bca7.tar.gz
CMake-4e62bc943c74cbc564209a42bb84605f0771bca7.tar.bz2
ctest: Verify TLS server certificate by default
Issue: #23608
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestCurl.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestCurl.cxx b/Source/CTest/cmCTestCurl.cxx
index 6f887f3..d9dc3b2 100644
--- a/Source/CTest/cmCTestCurl.cxx
+++ b/Source/CTest/cmCTestCurl.cxx
@@ -14,6 +14,10 @@
#include "cmSystemTools.h"
#include "cmValue.h"
+namespace {
+const bool TLS_VERIFY_DEFAULT = true;
+}
+
cmCTestCurl::cmCTestCurl(cmCTest* ctest)
: CTest(ctest)
, CurlOpts(ctest)
@@ -76,6 +80,9 @@ cmCTestCurlOpts::cmCTestCurlOpts(cmCTest* ctest)
}
}
}
+ if (!this->TLSVerifyOpt.has_value()) {
+ this->TLSVerifyOpt = TLS_VERIFY_DEFAULT;
+ }
}
bool cmCTestCurl::InitCurl()