Module: wine Branch: master Commit: e1b2eb3485c897c612e90d0de670fbaec1a719d5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e1b2eb3485c897c612e90d0de6...
Author: Juan Lang juan.lang@gmail.com Date: Wed Nov 4 11:58:28 2009 -0800
crypt32: Fix a test failure on NT 4.
---
dlls/crypt32/tests/chain.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c index 3f36afb..581219a 100644 --- a/dlls/crypt32/tests/chain.c +++ b/dlls/crypt32/tests/chain.c @@ -2201,9 +2201,13 @@ static const ChainPolicyCheck sslPolicyCheckWithMatchingName = { { 0, 0, -1, -1, NULL}, NULL, 0 };
+/* Windows NT 4 has a different error code when the name doesn't match. */ +static const CERT_CHAIN_POLICY_STATUS noMatchingNameBrokenStatus = + { 0, CERT_E_ROLE, 0, 0, NULL }; + static const ChainPolicyCheck sslPolicyCheckWithoutMatchingName = { { sizeof(iTunesChain) / sizeof(iTunesChain[0]), iTunesChain }, - { 0, CERT_E_CN_NO_MATCH, 0, 0, NULL}, NULL, 0 + { 0, CERT_E_CN_NO_MATCH, 0, 0, NULL}, &noMatchingNameBrokenStatus, 0 };
static const ChainPolicyCheck authenticodePolicyCheck[] = {