components/irssi/patches/01-ssl.patch
changeset 5931 79be2389471d
parent 5225 d3c7046a4000
--- a/components/irssi/patches/01-ssl.patch	Thu May 05 14:17:50 2016 -0700
+++ b/components/irssi/patches/01-ssl.patch	Thu May 05 16:41:13 2016 -0700
@@ -1,13 +1,14 @@
 # Disable SSLv2, SSLv3, and TLSv1.
 # Upstream has disabled SSLv2 and SSLv3. Disabling of TLSv1 will not go upstream
 
---- irssi-0.8.15/src/core/network-openssl.c.orig	Wed Dec 16 10:30:52 2015
-+++ irssi-0.8.15/src/core/network-openssl.c	Wed Dec 16 10:30:27 2015
-@@ -406,6 +406,7 @@
+--- irssi-0.8.19/src/core/network-openssl.c.orig	2016-05-02 14:21:25.586859407 -0700
++++ irssi-0.8.19/src/core/network-openssl.c	2016-05-02 14:39:25.570411376 -0700
+@@ -479,7 +479,7 @@
  		g_error("Could not allocate memory for SSL context");
  		return NULL;
  	}
+-	SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
 +	SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1);
- 
- 	if (mycert && *mycert) {
- 		char *scert = NULL, *spkey = NULL;
+ 	SSL_CTX_set_default_passwd_cb(ctx, get_pem_password_callback);
+ 	SSL_CTX_set_default_passwd_cb_userdata(ctx, (void *)mypass);
+ 	if (ciphers && *ciphers) {