Juan Lang : crypt32: Fix a test failure on NT 4.
Alexandre Julliard
julliard at winehq.org
Thu Nov 5 10:50:00 CST 2009
Module: wine
Branch: master
Commit: e1b2eb3485c897c612e90d0de670fbaec1a719d5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e1b2eb3485c897c612e90d0de670fbaec1a719d5
Author: Juan Lang <juan.lang at 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[] = {
More information about the wine-cvs
mailing list