Unbreak tls support after recent gnutls update.

This commit is contained in:
ajacoutot 2011-06-12 08:09:26 +00:00
parent 7afd651e2e
commit 0e771080ec
2 changed files with 16 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.37 2011/05/11 12:03:19 jasper Exp $
# $OpenBSD: Makefile,v 1.38 2011/06/12 08:09:26 ajacoutot Exp $
COMMENT= IRC proxy to connect to AIM, ICQ, Jabber, MSN and Yahoo
DISTNAME= bitlbee-1.2.7
CATEGORIES= net
REVISION= 1
REVISION= 2
HOMEPAGE= http://bitlbee.org/

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-lib_ssl_gnutls_c,v 1.1 2011/06/12 08:09:26 ajacoutot Exp $
http://bugs.bitlbee.org/bitlbee/ticket/779
--- lib/ssl_gnutls.c.orig Sat May 15 16:52:23 2010
+++ lib/ssl_gnutls.c Fri Jun 10 16:33:58 2011
@@ -128,6 +128,7 @@ static gboolean ssl_connected( gpointer data, gint sou
gnutls_certificate_allocate_credentials( &conn->xcred );
gnutls_init( &conn->session, GNUTLS_CLIENT );
+ gnutls_transport_set_lowat ( conn->session, 1 );
gnutls_set_default_priority( conn->session );
gnutls_credentials_set( conn->session, GNUTLS_CRD_CERTIFICATE, conn->xcred );