xchat: unbreak

This commit is contained in:
Michael Gehring 2016-03-30 20:58:29 +02:00
parent c4f87ce8c2
commit e7c3d943fc
2 changed files with 22 additions and 3 deletions

View File

@ -0,0 +1,20 @@
--- src/common/ssl.c.orig 2016-03-30 20:54:51.193579450 +0200
+++ src/common/ssl.c 2016-03-30 20:55:03.070579987 +0200
@@ -70,7 +70,7 @@
SSLeay_add_ssl_algorithms ();
SSL_load_error_strings ();
- ctx = SSL_CTX_new (server ? SSLv3_server_method() : SSLv3_client_method ());
+ ctx = SSL_CTX_new (server ? SSLv23_server_method() : SSLv23_client_method ());
SSL_CTX_set_session_cache_mode (ctx, SSL_SESS_CACHE_BOTH);
SSL_CTX_set_timeout (ctx, 300);
@@ -281,7 +281,7 @@
__SSL_critical_error ("SSL_new");
SSL_set_fd (ssl, sd);
- if (ctx->method == SSLv3_client_method())
+ if (ctx->method == SSLv23_client_method())
SSL_set_connect_state (ssl);
else
SSL_set_accept_state(ssl);

View File

@ -1,7 +1,7 @@
# Template file for 'xchat'
pkgname=xchat
version=2.8.8
revision=11
revision=12
lib32disabled=yes
build_style=gnu-configure
hostmakedepends="pkg-config gdk-pixbuf-devel perl"
@ -11,11 +11,10 @@ configure_args=" --sysconfdir=/etc --enable-openssl --enable-dbus
short_desc="A GTK+ based IRC client"
maintainer="Enno Boland <gottox@voidlinux.eu>"
homepage="http://www.xchat.org/"
license="GPL"
license="GPL-2"
distfiles="http://www.xchat.org/files/source/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=37b7afd87b5576e17f5dbdd0ed8c14004ac71b8c5430baff9a785bad8df0310b
make_build_args="LDFLAGS=-lgmodule-2.0"
broken="SSLv3_client_method"
pre_configure() {
local perlflags=