unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 35261ab19061560b591d192081f1ce095d73f5de 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 a5f64e1647c746f15c7a9a122d0cbf235b3c4c54 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 35261ab ...
found 35261ab in https://yhetil.org/guix-devel/5ea735685b49a166c74b756cb311e8a6142e132c.1452045889.git.leo@famulari.name/

applying [1/1] https://yhetil.org/guix-devel/5ea735685b49a166c74b756cb311e8a6142e132c.1452045889.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..35261ab

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 35261ab19061560b591d192081f1ce095d73f5de	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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).