summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2018-08-13 20:06:00 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2018-08-17 15:18:07 (GMT)
commit5029d58c3862811184d4a75891b3474b2a9512e1 (patch)
tree118daa1a18cabfd06377bc2b00cdda3fda11680b
parentcd8b094d1dacbff2fa5e520ca167d6f1880310f9 (diff)
downloadCMake-5029d58c3862811184d4a75891b3474b2a9512e1.zip
CMake-5029d58c3862811184d4a75891b3474b2a9512e1.tar.gz
CMake-5029d58c3862811184d4a75891b3474b2a9512e1.tar.bz2
ctest: allow cdash submissions using alternate authentication methods
-rw-r--r--Source/CTest/cmCTestSubmitHandler.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx
index 4c2b75e..cbed40e 100644
--- a/Source/CTest/cmCTestSubmitHandler.cxx
+++ b/Source/CTest/cmCTestSubmitHandler.cxx
@@ -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);