summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2009-07-07 11:07:14 (GMT)
committerWill Thompson <will.thompson@collabora.co.uk>2009-07-07 11:07:14 (GMT)
commit14ecd77d9416b31951ee1c4721f796dde2bac905 (patch)
tree16eb1cb3cf264b07dea2d81a762061a0a5735207
parent5b4ed6785f9e35e835e91b09a4dea4538641b09f (diff)
downloadpidgin-certs.tar.gz
pidgin-certs.tar.xz
Allow UIs to accept certificates with broken chainscerts
-rw-r--r--libpurple/certificate.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libpurple/certificate.c b/libpurple/certificate.c
index 99d4e1e..a0fa2ae 100644
--- a/libpurple/certificate.c
+++ b/libpurple/certificate.c
@@ -1377,6 +1377,16 @@ x509_tls_cached_unknown_peer(PurpleCertificateVerificationRequest *vrq)
non-elite user. */
gchar *secondary;
+ if (purple_request_untrusted_cert_supported ())
+ purple_request_untrusted_cert (vrq->cb_data,
+ vrq_get_account (vrq),
+ vrq->subject_name, vrq->cert_chain,
+ PURPLE_CERTIFICATE_INVALID_CHAIN,
+ x509_tls_cached_user_auth_response_cb,
+ vrq);
+ return;
+ }
+
secondary = g_strdup_printf(_("The certificate chain presented"
" for %s is not valid."),
vrq->subject_name);