From 8646c39bdbe8b2ca451059382c4ff2316a92ca74 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Fri, 20 Nov 2009 14:46:53 -0800 Subject: [PATCH] crypt32: Finding a CRL issued by a cert should compare the cert's subject, not its issuer. --- dlls/crypt32/crl.c | 2 +- dlls/crypt32/tests/crl.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/crypt32/crl.c b/dlls/crypt32/crl.c index 9e7fe9d1080..b8e81824769 100644 --- a/dlls/crypt32/crl.c +++ b/dlls/crypt32/crl.c @@ -115,7 +115,7 @@ static BOOL compare_crl_issued_by(PCCRL_CONTEXT pCrlContext, DWORD dwType, 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 cdb327f5eaa..abf2fd06703 100644 --- a/dlls/crypt32/tests/crl.c +++ b/dlls/crypt32/tests/crl.c @@ -651,11 +651,9 @@ static void testFindCRL(void) 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, -- 2.11.4.GIT