diff options
author | Zack Galbreath <zack.galbreath@kitware.com> | 2017-05-03 14:50:04 (GMT) |
---|---|---|
committer | Zack Galbreath <zack.galbreath@kitware.com> | 2017-05-04 16:21:21 (GMT) |
commit | 1a7d00bd12f261428edb8fef09461bee8067ceee (patch) | |
tree | 7d998892f75ff11470ff6c884d4e168bdddd6c63 /Source/CTest/cmCTestCurl.h | |
parent | 294cf948dc37799e1980685afbf1fa585ad5b0fb (diff) | |
download | CMake-1a7d00bd12f261428edb8fef09461bee8067ceee.zip CMake-1a7d00bd12f261428edb8fef09461bee8067ceee.tar.gz CMake-1a7d00bd12f261428edb8fef09461bee8067ceee.tar.bz2 |
ctest_submit: Add HTTPHEADER option
Allow CTest script writers to specify additional HTTP headers to be sent
to CDash during submission.
The motivating case for this feature is a corresponding change in CDash.
This will allow projects to refuse submissions from any site not bearing
a valid authentication token.
Diffstat (limited to 'Source/CTest/cmCTestCurl.h')
-rw-r--r-- | Source/CTest/cmCTestCurl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestCurl.h b/Source/CTest/cmCTestCurl.h index 67608cb..427a392 100644 --- a/Source/CTest/cmCTestCurl.h +++ b/Source/CTest/cmCTestCurl.h @@ -23,6 +23,10 @@ public: // currently only supports CURLOPT_SSL_VERIFYPEER_OFF // and CURLOPT_SSL_VERIFYHOST_OFF void SetCurlOptions(std::vector<std::string> const& args); + void SetHttpHeaders(std::vector<std::string> const& v) + { + this->HttpHeaders = v; + } void SetUseHttp10On() { this->UseHttp10 = true; } void SetTimeOutSeconds(int s) { this->TimeOutSeconds = s; } void SetQuiet(bool b) { this->Quiet = b; } @@ -35,6 +39,7 @@ protected: private: cmCTest* CTest; CURL* Curl; + std::vector<std::string> HttpHeaders; std::string HTTPProxyAuth; std::string HTTPProxy; curl_proxytype HTTPProxyType; |