crypt32: CertFindCRLInStore with find type CRL_FIND_ISSUED_FOR shouldn't check whether the CRL is valid for the subject certificate.
This commit is contained in:
parent
f378394acd
commit
9d9070ae3c
|
@ -177,9 +177,6 @@ static BOOL compare_crl_issued_for(PCCRL_CONTEXT pCrlContext, DWORD dwType,
|
|||
|
||||
ret = CertCompareCertificateName(para->pIssuerCert->dwCertEncodingType,
|
||||
¶->pIssuerCert->pCertInfo->Issuer, &pCrlContext->pCrlInfo->Issuer);
|
||||
if (ret)
|
||||
ret = CertIsValidCRLForCertificate(para->pSubjectCert, pCrlContext,
|
||||
0, NULL);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -530,7 +530,6 @@ static void testFindCRL(void)
|
|||
* match cert's issuer, but verisignCRL does not, so the expected count
|
||||
* is 0.
|
||||
*/
|
||||
todo_wine {
|
||||
ok(count == 3 || broken(count == 0 /* NT4, Win9x */),
|
||||
"expected 3 matching CRLs, got %d\n", count);
|
||||
/* Only v1CRLWithIssuerAndEntry and v2CRLWithIssuingDistPoint contain
|
||||
|
@ -538,7 +537,6 @@ static void testFindCRL(void)
|
|||
*/
|
||||
ok(revoked_count == 2 || broken(revoked_count == 0 /* NT4, Win9x */),
|
||||
"expected 2 matching CRL entries, got %d\n", revoked_count);
|
||||
}
|
||||
|
||||
CertFreeCertificateContext(cert);
|
||||
|
||||
|
|
Loading…
Reference in New Issue