Juan Lang : crypt32: Add basic flags tests flags for CertFindCRLInStore with find type CRL_FIND_ISSUED_BY .

Alexandre Julliard julliard at winehq.org
Thu Nov 19 10:15:21 CST 2009


Module: wine
Branch: master
Commit: 8beed85a2cda2824cdfa5d7f38fc5f92d4180433
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8beed85a2cda2824cdfa5d7f38fc5f92d4180433

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Nov 18 16:26:48 2009 -0800

crypt32: Add basic flags tests flags for CertFindCRLInStore with find type CRL_FIND_ISSUED_BY.

---

 dlls/crypt32/tests/crl.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/tests/crl.c b/dlls/crypt32/tests/crl.c
index cec233f..2d361a5 100644
--- a/dlls/crypt32/tests/crl.c
+++ b/dlls/crypt32/tests/crl.c
@@ -379,6 +379,18 @@ static void testFindCRL(void)
     if (context)
         CertFreeCRLContext(context);
 
+    /* Try various find flags */
+    context = pCertFindCRLInStore(store, 0, CRL_FIND_ISSUED_BY_SIGNATURE_FLAG,
+     CRL_FIND_ISSUED_BY, cert, NULL);
+    todo_wine
+    ok(!context, "unexpected context\n");
+    /* The CRL doesn't have an AKI extension, so it matches any cert */
+    context = pCertFindCRLInStore(store, 0, CRL_FIND_ISSUED_BY_AKI_FLAG,
+     CRL_FIND_ISSUED_BY, cert, NULL);
+    ok(context != NULL, "Expected a context\n");
+    if (context)
+        CertFreeCRLContext(context);
+
     if (0)
     {
         /* Crash or return NULL/STATUS_ACCESS_VIOLATION */




More information about the wine-cvs mailing list