mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -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 "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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user