1 Remove the deprecated gnutls_certificate_verify_peers() in favour of the new
2 gnutls_certificate_veirfy_peers2()
4 Reported on http://bugs.debian.org/624085
5 Reported upstream on http://bugs.mutt.org/3516
7 --- a/mutt_ssl_gnutls.c
8 +++ b/mutt_ssl_gnutls.c
10 /* sanity-checking wrapper for gnutls_certificate_verify_peers */
11 static gnutls_certificate_status tls_verify_peers (gnutls_session tlsstate)
13 - gnutls_certificate_status certstat;
14 + unsigned int verify_ret, status;
16 - certstat = gnutls_certificate_verify_peers (tlsstate);
19 + verify_ret = gnutls_certificate_verify_peers2 (tlsstate, &status);
23 - if (certstat == GNUTLS_E_NO_CERTIFICATE_FOUND)
24 + if (status == GNUTLS_E_NO_CERTIFICATE_FOUND)
26 mutt_error (_("Unable to get certificate from peer"));
33 mutt_error (_("Certificate verification error (%s)"),
34 - gnutls_strerror (certstat));
35 + gnutls_strerror (status));
47 static int tls_check_certificate (CONNECTION* conn)