# HG changeset patch # User Paul Aurich # Date 1255145251 0 # Node ID 13a229a062c6a87aaf74ccef7e9be045928be6d1 # Parent b8d68532c18888fbafa88321c471a260c06e287b 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. diff -r b8d68532c188 -r 13a229a062c6 ChangeLog --- 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 diff -r b8d68532c188 -r 13a229a062c6 libpurple/plugins/ssl/ssl-gnutls.c --- 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