mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 06:22:42 +01:00
SSL_CERT_FILE -> NIX_SSL_CERT_FILE
This prevents collisions with the "native" OpenSSL, in particular on
OS X.
Fixes #921.
(cherry picked from commit fb2dd32100)
This commit is contained in:
parent
8ca944e009
commit
41230dd463
6 changed files with 18 additions and 15 deletions
|
|
@ -129,7 +129,8 @@ struct Curl
|
|||
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
||||
|
||||
if (options.verifyTLS)
|
||||
curl_easy_setopt(curl, CURLOPT_CAINFO, getEnv("SSL_CERT_FILE", "/etc/ssl/certs/ca-certificates.crt").c_str());
|
||||
curl_easy_setopt(curl, CURLOPT_CAINFO,
|
||||
getEnv("NIX_SSL_CERT_FILE", getEnv("SSL_CERT_FILE", "/etc/ssl/certs/ca-certificates.crt")).c_str());
|
||||
else {
|
||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
|
||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue