]> git.0d.be Git - empathy.git/commitdiff
libempathy-gtk: In TLS Dialog allow remembering of any exception.
authorStef Walter <stefw@collabora.co.uk>
Tue, 8 Mar 2011 06:34:35 +0000 (07:34 +0100)
committerStef Walter <stefw@collabora.co.uk>
Tue, 8 Mar 2011 06:35:56 +0000 (07:35 +0100)
Previously we couldn't do this because we had nowhere to store these
exceptions. But now this is possible because we're storing them as trust
assertions.

https://bugzilla.gnome.org/show_bug.cgi?id=639417

libempathy-gtk/empathy-tls-dialog.c

index 8f1f49ed6ec3d245188febf406e9aa2a7311d5bc..991f52133bac4a55f46d59a0d79064214dbb024f 100644 (file)
@@ -293,21 +293,12 @@ empathy_tls_dialog_constructed (GObject *object)
 
   content_area = gtk_dialog_get_content_area (dialog);
 
-  /* FIXME: right now we do this only if the error is SelfSigned, as we can
-   * easily store the new CA cert in $XDG_CONFIG_DIR/telepathy/certs in that
-   * case. For the other errors, we probably need a smarter/more powerful
-   * certificate storage.
-   */
-  if (priv->reason == EMP_TLS_CERTIFICATE_REJECT_REASON_SELF_SIGNED)
-    {
-      checkbox = gtk_check_button_new_with_label (
-          _("Remember this choice for future connections"));
-      gtk_box_pack_end (GTK_BOX (content_area), checkbox, FALSE, FALSE, 0);
-      gtk_widget_show (checkbox);
-
-      g_signal_connect (checkbox, "toggled",
-          G_CALLBACK (checkbox_toggled_cb), self);
-    }
+  checkbox = gtk_check_button_new_with_label (
+      _("Remember this choice for future connections"));
+  gtk_box_pack_end (GTK_BOX (content_area), checkbox, FALSE, FALSE, 0);
+  gtk_widget_show (checkbox);
+  g_signal_connect (checkbox, "toggled", G_CALLBACK (checkbox_toggled_cb),
+      self);
 
   text = g_strdup_printf ("<b>%s</b>", _("Certificate Details"));
   expander = gtk_expander_new (text);