Unverified Commit 85a7306a authored by derf's avatar derf Committed by GitHub
Browse files

Merge pull request #340 from mbakke/master

imlib: Look up CA certificates by $CURL_CA_BUNDLE.
parents 7c516eab ed0dd5a4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);