changeset 32196:15c227a35207

gg: Fix build w/ older versions of GnuTLS. Closes #14365
author Paul Aurich <paul@darkrain42.org>
date Sun, 17 Jul 2011 03:55:29 +0000
parents e17b5aab37d0
children 6f503dcd843e
files ChangeLog libpurple/protocols/gg/lib/libgadu.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jul 14 21:59:44 2011 +0000
+++ b/ChangeLog	Sun Jul 17 03:55:29 2011 +0000
@@ -12,6 +12,8 @@
 	  (#5242)
 	* Better status message handling. (Tomasz Wasilczyk) (#14314)
 	* Merged two buddy blocking methods. (Tomasz Wasilczyk) (#5303)
+	* Fix building of the bundled libgadu library with older versions
+	  of GnuTLS. (patch plucked from upstream) (#14365)
 
 	MSN:
 	* Fix seemingly random crashing. (#14307)
--- a/libpurple/protocols/gg/lib/libgadu.c	Thu Jul 14 21:59:44 2011 +0000
+++ b/libpurple/protocols/gg/lib/libgadu.c	Sun Jul 17 03:55:29 2011 +0000
@@ -893,8 +893,7 @@
 		gnutls_global_init();
 		gnutls_certificate_allocate_credentials(&tmp->xcred);
 		gnutls_init(&tmp->session, GNUTLS_CLIENT);
-		gnutls_priority_set_direct(tmp->session, "NORMAL:-VERS-TLS", NULL);
-//		gnutls_priority_set_direct(tmp->session, "NONE:+VERS-SSL3.0:+AES-128-CBC:+RSA:+SHA1:+COMP-NULL", NULL);
+		gnutls_set_default_priority(tmp->session);
 		gnutls_credentials_set(tmp->session, GNUTLS_CRD_CERTIFICATE, tmp->xcred);
 #elif defined(GG_CONFIG_HAVE_OPENSSL)
 		char buf[1024];