summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@chaosdorf.de>2017-10-31 10:56:58 +0800
committerGitHub <noreply@github.com>2017-10-31 10:56:58 +0800
commit85a7306a287850857ef5b10c128f724b20e6341f (patch)
tree9e7e56b09f0884e12262109500a42ec6dec0370b
parent7c516eabb7c7b940de63417452e4d1eab3b83792 (diff)
parented0dd5a474117f337baecb2c5210ec464d120696 (diff)
Merge pull request #340 from mbakke/master
imlib: Look up CA certificates by $CURL_CA_BUNDLE.
-rw-r--r--src/imlib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/imlib.c b/src/imlib.c
index dfb79aa..82a9865 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -429,6 +429,10 @@ static char *feh_http_load_image(char *url)
if (opt.insecure_ssl) {
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
+ } else {
+ // Allow the user to specify custom CA certificates.
+ curl_easy_setopt(curl, CURLOPT_CAINFO,
+ getenv("CURL_CA_BUNDLE"));
}
res = curl_easy_perform(curl);