all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 4a739eeecaefd3953624df6777343db6f370d6d0 790 bytes (raw)
name: gnu/packages/patches/w3m-disable-weak-ciphers.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
19
20
21
22
23
24
25
26
27
 
From f29e8344b3dbc95971edfca090e991c413990ba1 Mon Sep 17 00:00:00 2001
From: Leo Famulari <leo@famulari.name>
Date: Tue, 5 Jan 2016 18:24:33 -0500
Subject: [PATCH 4/4] Disable weak ciphers

Disable RC4, "export ciphers", and all keys < 128 bits.

Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/w3m/+bug/1325674
---
 url.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/url.c b/url.c
index ed6062e..e86b1f3 100644
--- a/url.c
+++ b/url.c
@@ -326,6 +326,7 @@ openSSLHandle(int sock, char *hostname, char **p_cert)
 	SSL_load_error_strings();
 	if (!(ssl_ctx = SSL_CTX_new(SSLv23_client_method())))
 	    goto eend;
+	SSL_CTX_set_cipher_list(ssl_ctx, "DEFAULT:!LOW:!RC4:!EXP");
 	option = SSL_OP_ALL;
 	if (ssl_forbid_method) {
 	    if (strchr(ssl_forbid_method, '2'))
-- 
2.6.4


debug log:

solving 4a739ee ...
found 4a739ee in https://yhetil.org/guix/d54e3f576279d76d3e1e8e1a068b7817aeb6c1da.1452042322.git.leo@famulari.name/

applying [1/1] https://yhetil.org/guix/d54e3f576279d76d3e1e8e1a068b7817aeb6c1da.1452042322.git.leo@famulari.name/
diff --git a/gnu/packages/patches/w3m-disable-weak-ciphers.patch b/gnu/packages/patches/w3m-disable-weak-ciphers.patch
new file mode 100644
index 0000000..4a739ee

1:24: space before tab in indent.
 	SSL_load_error_strings();
1:25: space before tab in indent.
 	if (!(ssl_ctx = SSL_CTX_new(SSLv23_client_method())))
1:26: space before tab in indent.
 	    goto eend;
1:28: space before tab in indent.
 	option = SSL_OP_ALL;
1:29: space before tab in indent.
 	if (ssl_forbid_method) {
Checking patch gnu/packages/patches/w3m-disable-weak-ciphers.patch...
Applied patch gnu/packages/patches/w3m-disable-weak-ciphers.patch cleanly.
warning: squelched 3 whitespace errors
warning: 8 lines add whitespace errors.

index at:
100644 4a739eeecaefd3953624df6777343db6f370d6d0	gnu/packages/patches/w3m-disable-weak-ciphers.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.