[empathy: 34/65] Save the certificate when we are told to remember



commit 1937b83032ff55814c27176c22e4184d0d30e045
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Aug 13 16:15:17 2010 +0200

    Save the certificate when we are told to remember

 src/empathy-auth-helper.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-auth-helper.c b/src/empathy-auth-helper.c
index 065fc8d..7ed4596 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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]