Hi.

Currently bitlbee does not play well with gnutls. I cannot connect using 
tls anymore. That is because gnutls recently changed 
gnutls_transport_set_lowat().
Anyway more info at:
http://bugs.bitlbee.org/bitlbee/ticket/779
https://savannah.gnu.org/support/index.php?107660

This patch fixes the issue until the bitlbee people come up with a 
better solution.

OK?


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/bitlbee/Makefile,v
retrieving revision 1.37
diff -u -r1.37 Makefile
--- Makefile    11 May 2011 12:03:19 -0000      1.37
+++ Makefile    10 Jun 2011 14:37:53 -0000
@@ -5,7 +5,7 @@
 DISTNAME=              bitlbee-1.2.7
 CATEGORIES=            net
 
-REVISION=              1
+REVISION=              2
 
 HOMEPAGE=              http://bitlbee.org/
 
Index: patches/patch-lib_ssl_gnutls_c
===================================================================
RCS file: patches/patch-lib_ssl_gnutls_c
diff -N patches/patch-lib_ssl_gnutls_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-lib_ssl_gnutls_c      10 Jun 2011 14:37:53 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+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 );
+       


-- 
Antoine

Reply via email to