aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-10-16 16:22:51 +0800
committerMilan Crha <mcrha@redhat.com>2009-10-16 16:22:51 +0800
commitb61ed73a9bcdd1fa5653350954fc39242d6bba39 (patch)
tree63efcdfae069cfe17497493b489951c46a910c1a /mail
parentc9dcd2a9003c1f1f34e15698903149946994cd84 (diff)
downloadgsoc2013-evolution-b61ed73a9bcdd1fa5653350954fc39242d6bba39.tar
gsoc2013-evolution-b61ed73a9bcdd1fa5653350954fc39242d6bba39.tar.gz
gsoc2013-evolution-b61ed73a9bcdd1fa5653350954fc39242d6bba39.tar.bz2
gsoc2013-evolution-b61ed73a9bcdd1fa5653350954fc39242d6bba39.tar.lz
gsoc2013-evolution-b61ed73a9bcdd1fa5653350954fc39242d6bba39.tar.xz
gsoc2013-evolution-b61ed73a9bcdd1fa5653350954fc39242d6bba39.tar.zst
gsoc2013-evolution-b61ed73a9bcdd1fa5653350954fc39242d6bba39.zip
Bug #372435 - Show SMIME cert info from mail, not from cert db
Diffstat (limited to 'mail')
-rw-r--r--mail/em-format-html-display.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 38e3af3587..620f56e85a 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -196,14 +196,10 @@ efhd_xpkcs7mime_viewcert_clicked (GtkWidget *button,
struct _smime_pobject *po)
{
CamelCipherCertInfo *info = g_object_get_data((GObject *)button, "e-cert-info");
- ECertDB *db = e_cert_db_peek();
ECert *ec = NULL;
- if (info->email)
- ec = e_cert_db_find_cert_by_email_address(db, info->email, NULL);
-
- if (ec == NULL && info->name)
- ec = e_cert_db_find_cert_by_nickname(db, info->name, NULL);
+ if (info->cert_data)
+ ec = e_cert_new (info->cert_data);
if (ec != NULL) {
GtkWidget *w = certificate_viewer_show(ec);
@@ -248,7 +244,6 @@ efhd_xpkcs7mime_add_cert_table (GtkWidget *vbox,
if (l) {
GtkWidget *w;
#if defined(HAVE_NSS)
- ECertDB *db = e_cert_db_peek();
ECert *ec = NULL;
#endif
w = gtk_label_new(l);
@@ -261,10 +256,8 @@ efhd_xpkcs7mime_add_cert_table (GtkWidget *vbox,
g_object_set_data((GObject *)w, "e-cert-info", info);
g_signal_connect(w, "clicked", G_CALLBACK(efhd_xpkcs7mime_viewcert_clicked), po);
- if (info->email)
- ec = e_cert_db_find_cert_by_email_address(db, info->email, NULL);
- if (ec == NULL && info->name)
- ec = e_cert_db_find_cert_by_nickname(db, info->name, NULL);
+ if (info->cert_data)
+ ec = e_cert_new (info->cert_data);
if (ec == NULL)
gtk_widget_set_sensitive(w, FALSE);