From a116031b9294cea224a2ed2a0642a5ba9ef5472f Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Mon, 17 Aug 2009 14:49:19 +0000 Subject: A patch to fix fails of connect to sslv3 server. Submitted by: stas@ --- irc/irssi/Makefile | 2 +- irc/irssi/files/patch-openssl.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 irc/irssi/files/patch-openssl.c (limited to 'irc/irssi') diff --git a/irc/irssi/Makefile b/irc/irssi/Makefile index e004f19099fc..3cb37e754b66 100644 --- a/irc/irssi/Makefile +++ b/irc/irssi/Makefile @@ -7,7 +7,7 @@ PORTNAME= irssi PORTVERSION= 0.8.14 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES?= irc MASTER_SITES= http://mirror.irssi.org/ diff --git a/irc/irssi/files/patch-openssl.c b/irc/irssi/files/patch-openssl.c new file mode 100644 index 000000000000..740de1a3714c --- /dev/null +++ b/irc/irssi/files/patch-openssl.c @@ -0,0 +1,29 @@ +--- src/core/network-openssl.c.orig 2009-08-17 09:27:52.000000000 +0800 ++++ src/core/network-openssl.c 2009-08-17 09:28:14.000000000 +0800 +@@ -230,7 +230,7 @@ + SSL_library_init(); + SSL_load_error_strings(); + +- ssl_ctx = SSL_CTX_new(SSLv23_client_method()); ++ ssl_ctx = SSL_CTX_new(SSLv3_client_method()); + if(!ssl_ctx) + { + g_error("Initialization of the SSL library failed"); +@@ -259,7 +259,7 @@ + + if (mycert && *mycert) { + char *scert = NULL, *spkey = NULL; +- if ((ctx = SSL_CTX_new(SSLv23_client_method())) == NULL) { ++ if ((ctx = SSL_CTX_new(SSLv3_client_method())) == NULL) { + g_error("Could not allocate memory for SSL context"); + return NULL; + } +@@ -279,7 +279,7 @@ + if ((cafile && *cafile) || (capath && *capath)) { + char *scafile = NULL; + char *scapath = NULL; +- if (! ctx && (ctx = SSL_CTX_new(SSLv23_client_method())) == NULL) { ++ if (! ctx && (ctx = SSL_CTX_new(SSLv3_client_method())) == NULL) { + g_error("Could not allocate memory for SSL context"); + return NULL; + } -- cgit v1.2.3