Juan Lang : crypt32: Set CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT when appropriate.
Alexandre Julliard
julliard at winehq.org
Wed Oct 6 14:04:19 CDT 2010
Module: wine
Branch: master
Commit: b1899c2066562309b039559108080a06bb51a089
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b1899c2066562309b039559108080a06bb51a089
Author: Juan Lang <juan.lang at gmail.com>
Date: Tue Oct 5 19:09:36 2010 -0700
crypt32: Set CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT when appropriate.
---
dlls/crypt32/chain.c | 3 ++-
dlls/crypt32/tests/chain.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index 266e6ab..ffb5fb4 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -1971,7 +1971,8 @@ static void CRYPT_CheckSimpleChain(PCertificateChainEngine engine,
if (!CRYPT_CriticalExtensionsSupported(
chain->rgpElement[i]->pCertContext))
chain->rgpElement[i]->TrustStatus.dwErrorStatus |=
- CERT_TRUST_INVALID_EXTENSION;
+ CERT_TRUST_INVALID_EXTENSION |
+ CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT;
CRYPT_CombineTrustStatus(&chain->TrustStatus,
&chain->rgpElement[i]->TrustStatus);
}
diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index c31fb30..4e5861a 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -3491,7 +3491,7 @@ static ChainCheck chainCheck[] = {
{ CERT_TRUST_IS_UNTRUSTED_ROOT | CERT_TRUST_INVALID_EXTENSION |
CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT, 0 },
1, simpleStatus30 },
- TODO_ERROR },
+ 0 },
{ { sizeof(selfSignedChain) / sizeof(selfSignedChain[0]), selfSignedChain },
{ { 0, CERT_TRUST_HAS_PREFERRED_ISSUER },
{ CERT_TRUST_IS_NOT_TIME_VALID | CERT_TRUST_IS_UNTRUSTED_ROOT, 0 },
More information about the wine-cvs
mailing list