summaryrefslogtreecommitdiff
path: root/libpurple
diff options
context:
space:
mode:
Diffstat (limited to 'libpurple')
-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);