From dd23f39f090f22d404dd15e40d411f9f8d65a38f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20F=C3=A6r=C3=B8y?= Date: Sat, 3 Apr 2010 19:09:11 +0000 Subject: [PATCH] Do not use SSLv2 protocol. From Bazerka. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5136 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/network-openssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/network-openssl.c b/src/core/network-openssl.c index 05614335..2c711c78 100644 --- a/src/core/network-openssl.c +++ b/src/core/network-openssl.c @@ -406,6 +406,7 @@ static GIOChannel *irssi_ssl_get_iochannel(GIOChannel *handle, const char *hostn g_error("Could not allocate memory for SSL context"); return NULL; } + SSL_CTX_set_options(ctx, SSL_OP_ALL | SSL_OP_NO_SSLv2); if (mycert && *mycert) { char *scert = NULL, *spkey = NULL;