Skip to content

Commit

Permalink
Bugzilla bug 130983: SEC_FindCrlByName needs to set the 'pkcs11ID' field
Browse files Browse the repository at this point in the history
of the CERTSignedCrl structure it returns.  The patch is contributed by
Rangan Sen <rangansen@netscape.com>.  r=relyea.
  • Loading branch information
wtc%netscape.com committed Mar 15, 2002
1 parent 376c546 commit 0fd88da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions security/nss/lib/certdb/crl.c
Expand Up @@ -408,11 +408,13 @@ SEC_FindCrlByKeyOnSlot(PK11SlotInfo *slot, SECItem *crlKey, int type)
if (derCrl == NULL) {
goto loser;
}
PORT_Assert(crlHandle != CK_INVALID_HANDLE);

crl = CERT_DecodeDERCrl(NULL, derCrl, type);
if (crl) {
crl->slot = slot;
slot = NULL; /* adopt it */
crl->pkcs11ID = crlHandle;
}
if (url) {
crl->url = PORT_ArenaStrdup(crl->arena,url);
Expand Down

0 comments on commit 0fd88da

Please sign in to comment.