Authenticate to tokens before looking up user certs.
authorrelyea%netscape.com
Wed, 24 Apr 2002 18:25:48 +0000
changeset 3043 46b1bf04fe814f914610b1dacab10ba62f5cbde2
parent 3040 d4ecea4f4e12ad02ae9dc1d0f9a7c3121bd66df7
child 3044 17d370e006f208aff77f52a26dd9ce53853cbc69
child 3045 34a17ab4244519018825ace6e11656c7249bf0f3
push idunknown
push userunknown
push dateunknown
Authenticate to tokens before looking up user certs.
security/nss/lib/pk11wrap/pk11cert.c
--- a/security/nss/lib/pk11wrap/pk11cert.c
+++ b/security/nss/lib/pk11wrap/pk11cert.c
@@ -1016,16 +1016,20 @@ PK11_TraverseSlotCerts(SECStatus(* callb
     creater.findTemplate = &theTemplate;
     creater.templateCount = 1;
 
     return pk11_TraverseAllSlots(PK11_TraverseSlot, &creater, wincx);
 #else
     NSSTrustDomain *defaultTD = STAN_GetDefaultTrustDomain();
     struct fake_der_cb_argstr fda;
     struct nss3_cert_cbstr pk11cb;
+
+    /* authenticate to the tokens first */
+    (void) pk11_TraverseAllSlots( NULL, NULL, wincx);
+
     fda.callback = callback;
     fda.arg = arg;
     pk11cb.callback = fake_der_cb;
     pk11cb.arg = &fda;
     NSSTrustDomain_TraverseCertificates(defaultTD, convert_cert, &pk11cb);
     return SECSuccess;
 #endif
 }