patch from Martin von Gagern that uses a new gnutls option to enable better

Sat, 21 Feb 2009 23:26:22 +0000

author
Ka-Hing Cheung <khc@pidgin.im>
date
Sat, 21 Feb 2009 23:26:22 +0000
changeset 25642
12092c956a71
parent 25641
cf74c04c6f41
child 25643
04831cc56f5a
child 25644
7dd1e0aea008

patch from Martin von Gagern that uses a new gnutls option to enable better
compatibility with a msn contact server

Fixes #3456

COPYRIGHT file | annotate | diff | comparison | revisions
libpurple/plugins/ssl/ssl-gnutls.c file | annotate | diff | comparison | revisions
--- a/COPYRIGHT	Sat Feb 21 22:10:27 2009 +0000
+++ b/COPYRIGHT	Sat Feb 21 23:26:22 2009 +0000
@@ -143,6 +143,7 @@
 Adam Fritzler
 Takao Fujiwara
 Max G.
+Martin von Gagern
 François Gagné
 Andrew Gaul
 Evgueni V. Gavrilov
--- a/libpurple/plugins/ssl/ssl-gnutls.c	Sat Feb 21 22:10:27 2009 +0000
+++ b/libpurple/plugins/ssl/ssl-gnutls.c	Sat Feb 21 23:26:22 2009 +0000
@@ -256,7 +256,9 @@
 	gsc->private_data = gnutls_data;
 
 	gnutls_init(&gnutls_data->session, GNUTLS_CLIENT);
-	gnutls_set_default_priority(gnutls_data->session);
+	if (gnutls_priority_set_direct(gnutls_data->session,
+		                             "NORMAL:%SSL3_RECORD_VERSION", NULL))
+		gnutls_priority_set_direct(gnutls_data->session, "NORMAL", NULL);
 
 	gnutls_certificate_type_set_priority(gnutls_data->session,
 		cert_type_priority);

mercurial