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.
This commit is contained in:
Zack Galbreath
2018-06-25 12:46:58 -04:00
committed by Brad King
parent ef5e2e8a62
commit 4464ef21da

View File

@@ -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);
}