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