Skip to content
Snippets Groups Projects
Unverified Commit ed0dd5a4 authored by Marius Bakke's avatar Marius Bakke
Browse files

imlib: Look up CA certificates by $CURL_CA_BUNDLE.

Similar to the `curl` command-line tool.
parent 7c516eab
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment