mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
libstore/filetransfer: Remove verifyTLS from FileTransferRequest, since it's always true
This variable is always true, so there's no use-case for it anymore.
This commit is contained in:
parent
d6f1e2de21
commit
b5ae3e10c2
2 changed files with 2 additions and 8 deletions
|
|
@ -399,13 +399,8 @@ struct curlFileTransfer : public FileTransfer
|
||||||
curl_easy_setopt(req, CURLOPT_SEEKDATA, this);
|
curl_easy_setopt(req, CURLOPT_SEEKDATA, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.verifyTLS) {
|
if (settings.caFile != "")
|
||||||
if (settings.caFile != "")
|
curl_easy_setopt(req, CURLOPT_CAINFO, settings.caFile.get().c_str());
|
||||||
curl_easy_setopt(req, CURLOPT_CAINFO, settings.caFile.get().c_str());
|
|
||||||
} else {
|
|
||||||
curl_easy_setopt(req, CURLOPT_SSL_VERIFYPEER, 0);
|
|
||||||
curl_easy_setopt(req, CURLOPT_SSL_VERIFYHOST, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !defined(_WIN32) && LIBCURL_VERSION_NUM >= 0x071000
|
#if !defined(_WIN32) && LIBCURL_VERSION_NUM >= 0x071000
|
||||||
curl_easy_setopt(req, CURLOPT_SOCKOPTFUNCTION, cloexec_callback);
|
curl_easy_setopt(req, CURLOPT_SOCKOPTFUNCTION, cloexec_callback);
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,6 @@ struct FileTransferRequest
|
||||||
VerbatimURL uri;
|
VerbatimURL uri;
|
||||||
Headers headers;
|
Headers headers;
|
||||||
std::string expectedETag;
|
std::string expectedETag;
|
||||||
bool verifyTLS = true;
|
|
||||||
bool head = false;
|
bool head = false;
|
||||||
bool post = false;
|
bool post = false;
|
||||||
size_t tries = fileTransferSettings.tries;
|
size_t tries = fileTransferSettings.tries;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue