Merge topic 'ctest-submit-httpauth'

5029d58c38 ctest: allow cdash submissions using alternate authentication methods

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2288
This commit is contained in:
Brad King
2018-08-24 17:24:10 +00:00
committed by Kitware Robot
+4
View File
@@ -454,6 +454,10 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const std::string& localprefix,
// specify target
::curl_easy_setopt(curl, CURLOPT_URL, upload_as.c_str());
// CURLAUTH_BASIC is default, and here we allow additional methods,
// including more secure ones
::curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
// now specify which file to upload
::curl_easy_setopt(curl, CURLOPT_INFILE, ftpfile);