Juan Lang : crypt32: Fix test failures on older versions of crypt32.

Alexandre Julliard julliard at winehq.org
Thu Oct 22 10:39:59 CDT 2009


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Oct 22 07:38:56 2009 -0700

crypt32: Fix test failures on older versions of crypt32.

---

 dlls/crypt32/tests/chain.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index d29c86a..e66015a 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -1778,14 +1778,15 @@ static ChainCheck chainCheck[] = {
    { { CERT_TRUST_IS_NOT_TIME_NESTED, CERT_TRUST_HAS_PREFERRED_ISSUER },
      { CERT_TRUST_IS_UNTRUSTED_ROOT, 0 }, 1, simpleStatus14 },
    0 },
+ /* Earlier versions of crypt32 incorrectly do not complain that the end cert's
+  * key usage is invalid, so ignore that error.
+  */
  { { sizeof(chain15) / sizeof(chain15[0]), chain15 },
-   { { CERT_TRUST_IS_NOT_TIME_NESTED, CERT_TRUST_HAS_PREFERRED_ISSUER },
+   { { CERT_TRUST_IS_NOT_TIME_NESTED | CERT_TRUST_IS_NOT_VALID_FOR_USAGE,
+       CERT_TRUST_HAS_PREFERRED_ISSUER },
      { CERT_TRUST_IS_UNTRUSTED_ROOT | CERT_TRUST_IS_NOT_VALID_FOR_USAGE, 0 },
      1, simpleStatus15 },
    0 },
- /* Windows XP incorrectly does not complain that the end cert's key usage is
-  * invalid, so ignore that error.
-  */
  { { sizeof(chain16) / sizeof(chain16[0]), chain16 },
    { { CERT_TRUST_IS_NOT_TIME_NESTED | CERT_TRUST_IS_NOT_VALID_FOR_USAGE,
        CERT_TRUST_HAS_PREFERRED_ISSUER },
@@ -1797,7 +1798,8 @@ static ChainCheck chainCheck[] = {
      { CERT_TRUST_IS_UNTRUSTED_ROOT, 0 }, 1, simpleStatus17 },
    0 },
  { { sizeof(chain18) / sizeof(chain18[0]), chain18 },
-   { { CERT_TRUST_IS_NOT_TIME_NESTED, CERT_TRUST_HAS_PREFERRED_ISSUER },
+   { { CERT_TRUST_IS_NOT_TIME_NESTED | CERT_TRUST_IS_NOT_VALID_FOR_USAGE,
+       CERT_TRUST_HAS_PREFERRED_ISSUER },
      { CERT_TRUST_IS_UNTRUSTED_ROOT | CERT_TRUST_IS_NOT_VALID_FOR_USAGE, 0 },
      1, simpleStatus18 },
    0 },




More information about the wine-cvs mailing list