Mercurial > pidgin
diff libpurple/plugins/ssl/ssl-gnutls.c @ 28355: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 | 0ac5a002dd6d |
children | 401a00227615 |
line wrap: on
line diff
--- 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