changeset 28722:13a229a062c6

Check the GnuTLS version before using a recent-ish flag. Fixes #10412. This was reported by Kev (of the XMPP world), who is using either Debian Lenny.
author Paul Aurich <paul@darkrain42.org>
date Sat, 10 Oct 2009 03:27:31 +0000
parents b8d68532c188
children 8e6c1408e430
files ChangeLog libpurple/plugins/ssl/ssl-gnutls.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Oct 10 00:56:35 2009 +0000
+++ b/ChangeLog	Sat Oct 10 03:27:31 2009 +0000
@@ -15,6 +15,7 @@
 	  to announce the list of loaded plugins (in both Finch and Pidgin).
 	* Fix a crash when performing DNS queries on Unixes that use the
 	  blocking DNS lookups.  (Brian Lu)
+	* Fix building the GnuTLS plugin with older versions of GnuTLS.
 
 	Finch:
 	* The TinyURL plugin now creates shorter URLs for long non-conversation
--- a/libpurple/plugins/ssl/ssl-gnutls.c	Sat Oct 10 00:56:35 2009 +0000
+++ b/libpurple/plugins/ssl/ssl-gnutls.c	Sat Oct 10 03:27:31 2009 +0000
@@ -730,6 +730,7 @@
 		return FALSE;
 	}
 
+#ifdef HAVE_GNUTLS_CERT_INSECURE_ALGORITHM
 	if (verify & GNUTLS_CERT_INSECURE_ALGORITHM) {
 		/*
 		 * A certificate in the chain is signed with an insecure
@@ -743,6 +744,7 @@
 				"Insecure hash algorithm used by %s to sign %s\n",
 				issuer_id, crt_id);
 	}
+#endif
 
 	if (verify & GNUTLS_CERT_INVALID) {
 		/* Signature didn't check out, but at least