mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
file(UPLOAD): Add default ca_certs
Default ca_certs were not added when using `UPLOAD` with built-in (non-system) cURL. Previously we only did this for `DOWNLOAD`. Fixes: #20551
This commit is contained in:
@@ -2051,6 +2051,13 @@ bool HandleUploadCommand(std::vector<std::string> const& args,
|
||||
cmFileCommandCurlDebugCallback);
|
||||
check_curl_result(res, "UPLOAD cannot set debug function: ");
|
||||
|
||||
// make sure default CAInfo is set
|
||||
std::string const& cainfo_err = cmCurlSetCAInfo(curl, nullptr);
|
||||
if (!cainfo_err.empty()) {
|
||||
status.SetError(cainfo_err);
|
||||
return false;
|
||||
}
|
||||
|
||||
cmFileCommandVectorOfChar chunkResponse;
|
||||
cmFileCommandVectorOfChar chunkDebug;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user