mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 01:10:22 +00:00
fix looking up a key on a token
This commit is contained in:
parent
208526857e
commit
e9ae28e48e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user