Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d7c9bd13
Commit
d7c9bd13
authored
Nov 10, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix test failures on multiple Windows versions.
parent
300d5fe5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
35 deletions
+28
-35
chain.c
dlls/crypt32/tests/chain.c
+28
-35
No files found.
dlls/crypt32/tests/chain.c
View file @
d7c9bd13
...
...
@@ -2456,8 +2456,7 @@ static CONST_DATA_BLOB chain20[] = {
};
static
const
CERT_TRUST_STATUS
elementStatus20
[]
=
{
{
CERT_TRUST_NO_ERROR
,
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
CERT_TRUST_IS_SELF_SIGNED
|
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
};
static
const
SimpleChainStatusCheck
simpleStatus20
[]
=
{
...
...
@@ -2481,8 +2480,7 @@ static CONST_DATA_BLOB chain22[] = {
};
static
const
CERT_TRUST_STATUS
elementStatus22
[]
=
{
{
CERT_TRUST_NO_ERROR
,
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
CERT_TRUST_IS_SELF_SIGNED
|
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
};
static
const
SimpleChainStatusCheck
simpleStatus22
[]
=
{
...
...
@@ -2494,8 +2492,7 @@ static CONST_DATA_BLOB chain23[] = {
};
static
const
CERT_TRUST_STATUS
elementStatus23
[]
=
{
{
CERT_TRUST_NO_ERROR
,
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
CERT_TRUST_IS_SELF_SIGNED
|
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
};
static
const
SimpleChainStatusCheck
simpleStatus23
[]
=
{
...
...
@@ -2507,8 +2504,7 @@ static CONST_DATA_BLOB chain24[] = {
};
static
const
CERT_TRUST_STATUS
elementStatus24
[]
=
{
{
CERT_TRUST_NO_ERROR
,
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
CERT_TRUST_IS_SELF_SIGNED
|
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
};
static
const
SimpleChainStatusCheck
simpleStatus24
[]
=
{
...
...
@@ -2520,8 +2516,7 @@ static CONST_DATA_BLOB chain25[] = {
};
static
const
CERT_TRUST_STATUS
elementStatus25
[]
=
{
{
CERT_TRUST_NO_ERROR
,
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
CERT_TRUST_IS_SELF_SIGNED
|
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
};
static
const
SimpleChainStatusCheck
simpleStatus25
[]
=
{
...
...
@@ -2533,8 +2528,7 @@ static CONST_DATA_BLOB chain26[] = {
};
static
const
CERT_TRUST_STATUS
elementStatus26
[]
=
{
{
CERT_TRUST_NO_ERROR
,
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
CERT_TRUST_IS_SELF_SIGNED
|
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
};
static
const
SimpleChainStatusCheck
simpleStatus26
[]
=
{
...
...
@@ -2559,8 +2553,7 @@ static CONST_DATA_BLOB chain28[] = {
};
static
const
CERT_TRUST_STATUS
elementStatus28
[]
=
{
{
CERT_TRUST_NO_ERROR
,
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
CERT_TRUST_IS_SELF_SIGNED
|
CERT_TRUST_HAS_NAME_MATCH_ISSUER
},
};
static
const
SimpleChainStatusCheck
simpleStatus28
[]
=
{
...
...
@@ -2739,13 +2732,13 @@ static ChainCheck chainCheck[] = {
1
,
simpleStatus19
},
0
},
{
{
sizeof
(
chain20
)
/
sizeof
(
chain20
[
0
]),
chain20
},
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
,
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
0
},
1
,
simpleStatus20
},
TODO_ERROR
},
0
},
{
{
sizeof
(
chain21
)
/
sizeof
(
chain21
[
0
]),
chain21
},
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
,
...
...
@@ -2755,45 +2748,45 @@ static ChainCheck chainCheck[] = {
1
,
simpleStatus21
},
0
},
{
{
sizeof
(
chain22
)
/
sizeof
(
chain22
[
0
]),
chain22
},
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
,
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
0
},
1
,
simpleStatus22
},
TODO_ERROR
},
0
},
{
{
sizeof
(
chain23
)
/
sizeof
(
chain23
[
0
]),
chain23
},
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
,
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
0
},
1
,
simpleStatus23
},
TODO_ERROR
},
0
},
{
{
sizeof
(
chain24
)
/
sizeof
(
chain24
[
0
]),
chain24
},
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
,
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
0
},
1
,
simpleStatus24
},
TODO_ERROR
},
0
},
{
{
sizeof
(
chain25
)
/
sizeof
(
chain25
[
0
]),
chain25
},
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
,
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
0
},
1
,
simpleStatus25
},
TODO_ERROR
},
0
},
{
{
sizeof
(
chain26
)
/
sizeof
(
chain26
[
0
]),
chain26
},
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
,
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
0
},
1
,
simpleStatus26
},
TODO_ERROR
},
0
},
{
{
sizeof
(
chain27
)
/
sizeof
(
chain27
[
0
]),
chain27
},
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
...
...
@@ -2802,13 +2795,13 @@ static ChainCheck chainCheck[] = {
1
,
simpleStatus27
},
0
},
{
{
sizeof
(
chain28
)
/
sizeof
(
chain28
[
0
]),
chain28
},
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
,
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
,
0
},
1
,
simpleStatus28
},
TODO_ERROR
},
0
},
{
{
sizeof
(
selfSignedChain
)
/
sizeof
(
selfSignedChain
[
0
]),
selfSignedChain
},
{
{
0
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
{
CERT_TRUST_IS_NOT_TIME_VALID
|
CERT_TRUST_IS_UNTRUSTED_ROOT
,
0
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment