summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2002-03-15 20:17:15 +0000
committerwtc%netscape.com <devnull@localhost>2002-03-15 20:17:15 +0000
commitcaaa736fe8c368af2132f542fa43eecc8d17eb87 (patch)
tree070b090cf1afadfff1a807b30624503150ef2b89
parent689ef48fa1ee44877b0e6da466f15ea047c91f20 (diff)
downloadnss-hg-caaa736fe8c368af2132f542fa43eecc8d17eb87.tar.gz
Bugzilla bug 130983: SEC_FindCrlByName needs to set the 'pkcs11ID' field
of the CERTSignedCrl structure it returns. The patch is contributed by Rangan Sen <rangansen@netscape.com>. r=relyea.
-rw-r--r--security/nss/lib/certdb/crl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/nss/lib/certdb/crl.c b/security/nss/lib/certdb/crl.c
index 4d6751a78..8eb90005a 100644
--- a/security/nss/lib/certdb/crl.c
+++ b/security/nss/lib/certdb/crl.c
@@ -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);