aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-08-19 00:01:45 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2010-08-19 01:19:00 +0800
commitd7d8916076c8dcca1b1d95f090444cc6e7a05cd6 (patch)
tree314d502f866e4d528998379b76467e74948eac87 /src
parent6c3c7278e4d1716342d1d222891c33e98d829691 (diff)
downloadgsoc2013-empathy-d7d8916076c8dcca1b1d95f090444cc6e7a05cd6.tar
gsoc2013-empathy-d7d8916076c8dcca1b1d95f090444cc6e7a05cd6.tar.gz
gsoc2013-empathy-d7d8916076c8dcca1b1d95f090444cc6e7a05cd6.tar.bz2
gsoc2013-empathy-d7d8916076c8dcca1b1d95f090444cc6e7a05cd6.tar.lz
gsoc2013-empathy-d7d8916076c8dcca1b1d95f090444cc6e7a05cd6.tar.xz
gsoc2013-empathy-d7d8916076c8dcca1b1d95f090444cc6e7a05cd6.tar.zst
gsoc2013-empathy-d7d8916076c8dcca1b1d95f090444cc6e7a05cd6.zip
Fill 'user-requested' when we reject the certificate
Diffstat (limited to 'src')
-rw-r--r--src/empathy-auth-client.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/empathy-auth-client.c b/src/empathy-auth-client.c
index 7546164d3..17b66a57d 100644
--- a/src/empathy-auth-client.c
+++ b/src/empathy-auth-client.c
@@ -87,6 +87,7 @@ tls_dialog_response_cb (GtkDialog *dialog,
{
EmpathyTLSCertificate *certificate = NULL;
EmpTLSCertificateRejectReason reason = 0;
+ GHashTable *details = NULL;
EmpathyTLSDialog *tls_dialog = EMPATHY_TLS_DIALOG (dialog);
gboolean remember = FALSE;
@@ -96,20 +97,27 @@ tls_dialog_response_cb (GtkDialog *dialog,
"certificate", &certificate,
"reason", &reason,
"remember", &remember,
+ "details", &details,
NULL);
gtk_widget_destroy (GTK_WIDGET (dialog));
if (response_id == GTK_RESPONSE_YES)
- empathy_tls_certificate_accept_async (certificate, NULL, NULL);
+ {
+ empathy_tls_certificate_accept_async (certificate, NULL, NULL);
+ }
else
- empathy_tls_certificate_reject_async (certificate, reason, TRUE,
- NULL, NULL);
+ {
+ tp_asv_set_boolean (details, "user-requested", TRUE);
+ empathy_tls_certificate_reject_async (certificate, reason, details,
+ NULL, NULL);
+ }
if (remember)
empathy_tls_certificate_store_ca (certificate);
g_object_unref (certificate);
+ g_hash_table_unref (details);
/* restart the timeout */
num_windows--;