mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 06:30:20 -06:00
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:
committed by
Brad King
parent
ef5e2e8a62
commit
4464ef21da
@@ -3,6 +3,7 @@
|
|||||||
#include "cmCTestCurl.h"
|
#include "cmCTestCurl.h"
|
||||||
|
|
||||||
#include "cmCTest.h"
|
#include "cmCTest.h"
|
||||||
|
#include "cmCurl.h"
|
||||||
#include "cmSystemTools.h"
|
#include "cmSystemTools.h"
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
@@ -76,6 +77,7 @@ bool cmCTestCurl::InitCurl()
|
|||||||
if (!this->Curl) {
|
if (!this->Curl) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
cmCurlSetCAInfo(this->Curl);
|
||||||
if (this->VerifyPeerOff) {
|
if (this->VerifyPeerOff) {
|
||||||
curl_easy_setopt(this->Curl, CURLOPT_SSL_VERIFYPEER, 0);
|
curl_easy_setopt(this->Curl, CURLOPT_SSL_VERIFYPEER, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user