[evolution] Bug 626066 - log in to NSS database before invoking certificate manager



commit fab32c94a18a03f8f665b3946dd2af102a0c4adc
Author: David Woodhouse <David Woodhouse intel com>
Date:   Sun Sep 12 15:54:00 2010 +0100

    Bug 626066 - log in to NSS database before invoking certificate manager

 smime/gui/certificate-manager.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/smime/gui/certificate-manager.c b/smime/gui/certificate-manager.c
index 5ef7c03..d0823b8 100644
--- a/smime/gui/certificate-manager.c
+++ b/smime/gui/certificate-manager.c
@@ -1097,13 +1097,18 @@ certificate_manager_config_new (EPreferencesWindow *window)
 	GtkWidget *parent;
 	GtkWidget *widget;
 	CertificateManagerData *cfm_data;
+	PK11SlotInfo* slot;
+	ECertDB *cert_db;
 
 	shell = e_preferences_window_get_shell (window);
 
 	g_return_val_if_fail (E_IS_SHELL (shell), NULL);
 
 	/* 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]