From e9ae28e48eab4b5302e95587718ed6cd933c0645 Mon Sep 17 00:00:00 2001 From: "ian.mcgreer%sun.com" Date: Wed, 27 Feb 2002 22:12:06 +0000 Subject: [PATCH] fix looking up a key on a token --- security/nss/cmd/certutil/certutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/nss/cmd/certutil/certutil.c b/security/nss/cmd/certutil/certutil.c index 47d963bf4b66..d876a9207326 100644 --- a/security/nss/cmd/certutil/certutil.c +++ b/security/nss/cmd/certutil/certutil.c @@ -952,7 +952,7 @@ secu_PrintKeyFromCert(CERTCertificate *cert, void *data) cbdata = (struct secuCBData *)data; out = cbdata->file; - key = PK11_FindPrivateKeyFromCert(PK11_GetInternalKeySlot(), cert, cbdata->wincx); + key = PK11_FindPrivateKeyFromCert(cert->slot, cert, cbdata->wincx); if (!key) { fprintf(out, "XXX could not extract key for %s.\n", cert->nickname); return SECFailure;