[evolution/gnome-2-30] Bug 626066 - log in to NSS database before invoking certificate manager
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-2-30] Bug 626066 - log in to NSS database before invoking certificate manager
- Date: Sun, 12 Sep 2010 17:47:52 +0000 (UTC)
commit 96f4d86c98c801a4510c17b948609af76ffb6061
Author: David Woodhouse <David Woodhouse intel com>
Date: Sun Sep 12 16:59:41 2010 +0100
Bug 626066 - log in to NSS database before invoking certificate manager
smime/gui/certificate-manager.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/smime/gui/certificate-manager.c b/smime/gui/certificate-manager.c
index d76b743..f0c68f2 100644
--- a/smime/gui/certificate-manager.c
+++ b/smime/gui/certificate-manager.c
@@ -1000,11 +1000,15 @@ certificate_manager_config_init (EShell *shell)
CertificateManagerData *cfm_data;
GtkWidget *preferences_window;
GtkWidget *widget;
+ PK11SlotInfo* slot;
+ ECertDB *cert_db;
g_return_if_fail (E_IS_SHELL (shell));
/* We need to peek the db here to make sure it (and NSS) are fully initialized. */
- e_cert_db_peek ();
+ cert_db = e_cert_db_peek();
+ slot = PK11_GetInternalKeySlot();
+ e_cert_db_login_to_slot(cert_db, slot);
cfm_data = g_new0 (CertificateManagerData, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]