[empathy/gnome-3-12] tls-verifier: Handle GNUTLS_CERT_REVOKED
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-3-12] tls-verifier: Handle GNUTLS_CERT_REVOKED
- Date: Mon, 20 Mar 2017 14:34:19 +0000 (UTC)
commit adf7b886fae28a604a59c1032dc5bae2881ce477
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Mar 15 20:23:43 2017 +0100
tls-verifier: Handle GNUTLS_CERT_REVOKED
... by mapping it to TP_TLS_CERTIFICATE_REJECT_REASON_REVOKED.
https://bugzilla.gnome.org/show_bug.cgi?id=780160
libempathy/empathy-tls-verifier.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c
index fcbc559..8f80b43 100644
--- a/libempathy/empathy-tls-verifier.c
+++ b/libempathy/empathy-tls-verifier.c
@@ -98,6 +98,8 @@ verification_output_to_reason (gint res,
*reason = TP_TLS_CERTIFICATE_REJECT_REASON_NOT_ACTIVATED;
else if (verify_output & GNUTLS_CERT_EXPIRED)
*reason = TP_TLS_CERTIFICATE_REJECT_REASON_EXPIRED;
+ else if (verify_output & GNUTLS_CERT_REVOKED)
+ *reason = TP_TLS_CERTIFICATE_REJECT_REASON_REVOKED;
else
*reason = TP_TLS_CERTIFICATE_REJECT_REASON_UNKNOWN;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]