Fix for 233118 . additional check for CRL signing usage. r=nelsonb

This commit is contained in:
jpierre%netscape.com 2004-02-11 05:25:01 +00:00
Родитель 305be21fa0
Коммит 3f92bc7c25
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -34,7 +34,7 @@
/* /*
* Moved from secpkcs7.c * Moved from secpkcs7.c
* *
* $Id: crl.c,v 1.39 2004/01/07 23:07:22 jpierre%netscape.com Exp $ * $Id: crl.c,v 1.40 2004/02/11 05:25:01 jpierre%netscape.com Exp $
*/ */
#include "cert.h" #include "cert.h"
@ -1461,7 +1461,7 @@ SECStatus DPCache_Update(CRLDPCache* cache, CERTCertificate* issuer,
through a certificate verification (CERT_CheckCRL) */ through a certificate verification (CERT_CheckCRL) */
if (issuer) { if (issuer) {
/* if we didn't have a valid issuer cert yet, but we do now. add it */ /* if we didn't have a valid issuer cert yet, but we do now. add it */
if (NULL == cache->issuer) { if ( (NULL == cache->issuer) && (SECSuccess == CERT_CheckCertUsage(issuer, KU_CRL_SIGN))) {
/* save the issuer cert */ /* save the issuer cert */
cache->issuer = CERT_DupCertificate(issuer); cache->issuer = CERT_DupCertificate(issuer);
} }