Commit e1b2eb34 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Fix a test failure on NT 4.

parent 1a3777e2
...@@ -2201,9 +2201,13 @@ static const ChainPolicyCheck sslPolicyCheckWithMatchingName = { ...@@ -2201,9 +2201,13 @@ static const ChainPolicyCheck sslPolicyCheckWithMatchingName = {
{ 0, 0, -1, -1, NULL}, NULL, 0 { 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 = { static const ChainPolicyCheck sslPolicyCheckWithoutMatchingName = {
{ sizeof(iTunesChain) / sizeof(iTunesChain[0]), iTunesChain }, { 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[] = { static const ChainPolicyCheck authenticodePolicyCheck[] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment