components/irssi/patches/01-ssl.patch
changeset 5225 d3c7046a4000
child 5931 79be2389471d
equal deleted inserted replaced
5224:388b8a6cf76b 5225:d3c7046a4000
       
     1 # Disable SSLv2, SSLv3, and TLSv1.
       
     2 # Upstream has disabled SSLv2 and SSLv3. Disabling of TLSv1 will not go upstream
       
     3 
       
     4 --- irssi-0.8.15/src/core/network-openssl.c.orig	Wed Dec 16 10:30:52 2015
       
     5 +++ irssi-0.8.15/src/core/network-openssl.c	Wed Dec 16 10:30:27 2015
       
     6 @@ -406,6 +406,7 @@
       
     7  		g_error("Could not allocate memory for SSL context");
       
     8  		return NULL;
       
     9  	}
       
    10 +	SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1);
       
    11  
       
    12  	if (mycert && *mycert) {
       
    13  		char *scert = NULL, *spkey = NULL;