aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-08-13 00:45:05 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2010-08-13 22:22:24 +0800
commit7472633dcbe1e50a28224960a02b8cf8f83bf422 (patch)
treecd3a07143cc1b9b76bdd991bd6db3514a66b0806 /libempathy
parente04b713c4a14b7accff86fe57ca78cb4cd5e0e46 (diff)
downloadgsoc2013-empathy-7472633dcbe1e50a28224960a02b8cf8f83bf422.tar
gsoc2013-empathy-7472633dcbe1e50a28224960a02b8cf8f83bf422.tar.gz
gsoc2013-empathy-7472633dcbe1e50a28224960a02b8cf8f83bf422.tar.bz2
gsoc2013-empathy-7472633dcbe1e50a28224960a02b8cf8f83bf422.tar.lz
gsoc2013-empathy-7472633dcbe1e50a28224960a02b8cf8f83bf422.tar.xz
gsoc2013-empathy-7472633dcbe1e50a28224960a02b8cf8f83bf422.tar.zst
gsoc2013-empathy-7472633dcbe1e50a28224960a02b8cf8f83bf422.zip
Use the right GnuTLS->Tp mapping for reasons.
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tls-verifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c
index 75943bfbd..1ed9ede0c 100644
--- a/libempathy/empathy-tls-verifier.c
+++ b/libempathy/empathy-tls-verifier.c
@@ -110,9 +110,9 @@ verification_output_to_reason (gint res,
retval = FALSE;
if (verify_output & GNUTLS_CERT_SIGNER_NOT_FOUND)
- *reason = EMP_TLS_CERTIFICATE_REJECT_REASON_UNTRUSTED;
- else if (verify_output & GNUTLS_CERT_SIGNER_NOT_CA)
*reason = EMP_TLS_CERTIFICATE_REJECT_REASON_SELF_SIGNED;
+ else if (verify_output & GNUTLS_CERT_SIGNER_NOT_CA)
+ *reason = EMP_TLS_CERTIFICATE_REJECT_REASON_UNTRUSTED;
else if (verify_output & GNUTLS_CERT_INSECURE_ALGORITHM)
*reason = EMP_TLS_CERTIFICATE_REJECT_REASON_INSECURE;
else if (verify_output & GNUTLS_CERT_NOT_ACTIVATED)