aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-03-08 14:34:35 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-09 17:16:05 +0800
commitd6dccee01a1554244d31d7bdc79f23212a7a3f4f (patch)
treee98922afb0d2261d0f8276eca2c0c170dee889d4
parentd29d43f132b9459ee51cd3e712a6f2b671c20077 (diff)
downloadgsoc2013-empathy-d6dccee01a1554244d31d7bdc79f23212a7a3f4f.tar
gsoc2013-empathy-d6dccee01a1554244d31d7bdc79f23212a7a3f4f.tar.gz
gsoc2013-empathy-d6dccee01a1554244d31d7bdc79f23212a7a3f4f.tar.bz2
gsoc2013-empathy-d6dccee01a1554244d31d7bdc79f23212a7a3f4f.tar.lz
gsoc2013-empathy-d6dccee01a1554244d31d7bdc79f23212a7a3f4f.tar.xz
gsoc2013-empathy-d6dccee01a1554244d31d7bdc79f23212a7a3f4f.tar.zst
gsoc2013-empathy-d6dccee01a1554244d31d7bdc79f23212a7a3f4f.zip
libempathy-gtk: In TLS Dialog allow remembering of any exception.
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
-rw-r--r--libempathy-gtk/empathy-tls-dialog.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/libempathy-gtk/empathy-tls-dialog.c b/libempathy-gtk/empathy-tls-dialog.c
index 4fa950f31..785338525 100644
--- a/libempathy-gtk/empathy-tls-dialog.c
+++ b/libempathy-gtk/empathy-tls-dialog.c
@@ -285,21 +285,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);