1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00

Downloader: Warn if no trusted CA file has been configured

This commit is contained in:
xbreak 2019-10-12 13:00:19 +00:00
parent 906d56a96b
commit 7c568d4c6e

View file

@ -285,6 +285,7 @@ struct CurlDownloader : public Downloader
}
if (request.verifyTLS) {
debug("verify TLS: Nix CA file = '%s'", settings.caFile);
if (settings.caFile != "")
curl_easy_setopt(req, CURLOPT_CAINFO, settings.caFile.c_str());
} else {