From e1b2eb3485c897c612e90d0de670fbaec1a719d5 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Wed, 4 Nov 2009 11:58:28 -0800 Subject: [PATCH] crypt32: Fix a test failure on NT 4. --- dlls/crypt32/tests/chain.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c index 3f36afbd2ea..581219a630b 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[] = {