aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-08-13 22:15:17 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2010-08-13 22:22:25 +0800
commit1937b83032ff55814c27176c22e4184d0d30e045 (patch)
treef67994542bb356ddd8a808d1469f4fed8e9a4698
parent2d6a216618624813b28495701d50c184c9934d77 (diff)
downloadgsoc2013-empathy-1937b83032ff55814c27176c22e4184d0d30e045.tar
gsoc2013-empathy-1937b83032ff55814c27176c22e4184d0d30e045.tar.gz
gsoc2013-empathy-1937b83032ff55814c27176c22e4184d0d30e045.tar.bz2
gsoc2013-empathy-1937b83032ff55814c27176c22e4184d0d30e045.tar.lz
gsoc2013-empathy-1937b83032ff55814c27176c22e4184d0d30e045.tar.xz
gsoc2013-empathy-1937b83032ff55814c27176c22e4184d0d30e045.tar.zst
gsoc2013-empathy-1937b83032ff55814c27176c22e4184d0d30e045.zip
Save the certificate when we are told to remember
-rw-r--r--src/empathy-auth-helper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/empathy-auth-helper.c b/src/empathy-auth-helper.c
index 065fc8ded..7ed4596c2 100644
--- a/src/empathy-auth-helper.c
+++ b/src/empathy-auth-helper.c
@@ -47,12 +47,14 @@ tls_dialog_response_cb (GtkDialog *dialog,
EmpathyTLSCertificate *certificate = NULL;
EmpTLSCertificateRejectReason reason = 0;
EmpathyTLSDialog *tls_dialog = EMPATHY_TLS_DIALOG (dialog);
+ gboolean remember = FALSE;
DEBUG ("Response %d", response_id);
g_object_get (tls_dialog,
"certificate", &certificate,
"reason", &reason,
+ "remember", &remember,
NULL);
gtk_widget_destroy (GTK_WIDGET (dialog));
@@ -62,6 +64,9 @@ tls_dialog_response_cb (GtkDialog *dialog,
else
empathy_tls_certificate_reject (certificate, reason, TRUE);
+ if (remember)
+ empathy_tls_certificate_store_ca (certificate);
+
g_object_unref (certificate);
}