Juan Lang : crypt32: Correct error when the subject alternate name can' t be decoded.

Alexandre Julliard julliard at winehq.org
Tue Nov 10 09:39:15 CST 2009


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Mon Nov  9 16:47:54 2009 -0800

crypt32: Correct error when the subject alternate name can't be decoded.

---

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

diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index c93e148..b1f230f 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -695,6 +695,10 @@ static void CRYPT_CheckNameConstraints(
                      0, CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT);
                 LocalFree(subjectName);
             }
+            else
+                *trustErrorStatus |=
+                 CERT_TRUST_INVALID_EXTENSION |
+                 CERT_TRUST_INVALID_NAME_CONSTRAINTS;
         }
         else
         {
diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index 70dc3d2..1994d85 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -2793,7 +2793,7 @@ static ChainCheck chainCheck[] = {
      { CERT_TRUST_IS_UNTRUSTED_ROOT | CERT_TRUST_INVALID_NAME_CONSTRAINTS |
        CERT_TRUST_INVALID_EXTENSION, 0 },
      1, simpleStatus27 },
-   TODO_ERROR },
+   0 },
  { { sizeof(chain28) / sizeof(chain28[0]), chain28 },
    { { CERT_TRUST_IS_NOT_TIME_NESTED | CERT_TRUST_IS_NOT_VALID_FOR_USAGE,
        CERT_TRUST_HAS_PREFERRED_ISSUER },




More information about the wine-cvs mailing list