all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob cbe2fa16d47ee4acce0b09298133856342f29b11 564 bytes (raw)
name: gnu/packages/patches/feh-respect-CURL_CA_BUNDLE.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
Make feh respect CURL_CA_BUNDLE similar to the `curl` tool.

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);


debug log:

solving cbe2fa16d ...
found cbe2fa16d in https://yhetil.org/guix/87r2tl4iuz.fsf@fastmail.com/

applying [1/1] https://yhetil.org/guix/87r2tl4iuz.fsf@fastmail.com/
diff --git a/gnu/packages/patches/feh-respect-CURL_CA_BUNDLE.patch b/gnu/packages/patches/feh-respect-CURL_CA_BUNDLE.patch
new file mode 100644
index 000000000..cbe2fa16d

1:14: space before tab in indent.
 			if (opt.insecure_ssl) {
1:15: space before tab in indent.
 				curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
1:16: space before tab in indent.
 				curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
1:21: space before tab in indent.
 			}
1:22: trailing whitespace.
 
Checking patch gnu/packages/patches/feh-respect-CURL_CA_BUNDLE.patch...
Applied patch gnu/packages/patches/feh-respect-CURL_CA_BUNDLE.patch cleanly.
warning: squelched 2 whitespace errors
warning: 7 lines add whitespace errors.

index at:
100644 cbe2fa16d47ee4acce0b09298133856342f29b11	gnu/packages/patches/feh-respect-CURL_CA_BUNDLE.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.