From e7c808ae155ad50c9fd7c876c744054ab2be2a15 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 13 May 2004 08:43:02 +0000 Subject: call SetPasswordFunc before calling authenticate - some nss calls can 2004-05-13 Not Zed * lib/e-cert-db.c (e_cert_db_login_to_slot): call SetPasswordFunc before calling authenticate - some nss calls can overwrite the setting. #52820. svn path=/trunk/; revision=25895 --- smime/lib/e-cert-db.c | 1 + 1 file changed, 1 insertion(+) (limited to 'smime/lib') diff --git a/smime/lib/e-cert-db.c b/smime/lib/e-cert-db.c index 7831572097..6141501f45 100644 --- a/smime/lib/e-cert-db.c +++ b/smime/lib/e-cert-db.c @@ -1157,6 +1157,7 @@ e_cert_db_login_to_slot (ECertDB *cert_db, PK11_InitPin (slot, "", pwd); } + PK11_SetPasswordFunc(pk11_password); if (PK11_Authenticate (slot, PR_TRUE, NULL) != SECSuccess) { printf ("PK11_Authenticate failed (err = %d/%d)\n", PORT_GetError(), PORT_GetError() + 0x2000); return FALSE; -- cgit v1.2.3