crypt32: Finding a CRL issued by a cert should compare the cert's subject, not its issuer.
diff --git a/dlls/crypt32/crl.c b/dlls/crypt32/crl.c
index 9e7fe9d..b8e8182 100644
--- a/dlls/crypt32/crl.c
+++ b/dlls/crypt32/crl.c
@@ -115,7 +115,7 @@
PCCERT_CONTEXT issuer = pvPara;
ret = CertCompareCertificateName(issuer->dwCertEncodingType,
- &issuer->pCertInfo->Issuer, &pCrlContext->pCrlInfo->Issuer);
+ &issuer->pCertInfo->Subject, &pCrlContext->pCrlInfo->Issuer);
if (ret && (dwFlags & CRL_FIND_ISSUED_BY_SIGNATURE_FLAG))
ret = CryptVerifyCertificateSignatureEx(0,
issuer->dwCertEncodingType,
diff --git a/dlls/crypt32/tests/crl.c b/dlls/crypt32/tests/crl.c
index cdb327f..abf2fd0 100644
--- a/dlls/crypt32/tests/crl.c
+++ b/dlls/crypt32/tests/crl.c
@@ -651,11 +651,9 @@
revoked_count++;
}
} while (context);
- todo_wine {
ok(count == 0, "expected 0 matching CRLs, got %d\n", count);
ok(revoked_count == 0, "expected 0 matching CRL entries, got %d\n",
revoked_count);
- }
count = revoked_count = 0;
do {
context = pCertFindCRLInStore(store, 0, 0, CRL_FIND_ISSUED_BY,