summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestCurl.cxx
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2018-06-25 16:46:58 (GMT)
committerBrad King <brad.king@kitware.com>2018-06-27 19:08:14 (GMT)
commit4464ef21da99ec0d506ea1d66f959b5b11f65d0c (patch)
treee0011cb8cd81935f7510a7a6d640c807ee621dd9 /Source/CTest/cmCTestCurl.cxx
parentef5e2e8a62982ebccf4883fc7a01cdb66f8ca183 (diff)
downloadCMake-4464ef21da99ec0d506ea1d66f959b5b11f65d0c.zip
CMake-4464ef21da99ec0d506ea1d66f959b5b11f65d0c.tar.gz
CMake-4464ef21da99ec0d506ea1d66f959b5b11f65d0c.tar.bz2
ctest_submit: Check CA file during CDASH_UPLOAD
This fixes a bug where ctest(SUBMIT CDASH_UPLOAD ...) would fail when attemping to submit to a site bearing a genuine SSL certificate. This code path was missing a call to cmCurlSetCAInfo() which loads the certificate authority file.
Diffstat (limited to 'Source/CTest/cmCTestCurl.cxx')
-rw-r--r--Source/CTest/cmCTestCurl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestCurl.cxx b/Source/CTest/cmCTestCurl.cxx
index f7b5930..0eb575e 100644
--- a/Source/CTest/cmCTestCurl.cxx
+++ b/Source/CTest/cmCTestCurl.cxx
@@ -3,6 +3,7 @@
#include "cmCTestCurl.h"
#include "cmCTest.h"
+#include "cmCurl.h"
#include "cmSystemTools.h"
#include <ostream>
@@ -76,6 +77,7 @@ bool cmCTestCurl::InitCurl()
if (!this->Curl) {
return false;
}
+ cmCurlSetCAInfo(this->Curl);
if (this->VerifyPeerOff) {
curl_easy_setopt(this->Curl, CURLOPT_SSL_VERIFYPEER, 0);
}