crypt32: Fix a test failure on NT 4.

This commit is contained in:
Juan Lang 2009-11-04 11:58:28 -08:00 committed by Alexandre Julliard
parent 1a3777e2dc
commit e1b2eb3485
1 changed files with 5 additions and 1 deletions

View File

@ -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[] = {