Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a5361e45
Commit
a5361e45
authored
Nov 09, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Test more chains against different policies.
parent
25e8f278
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
chain.c
dlls/crypt32/tests/chain.c
+48
-0
No files found.
dlls/crypt32/tests/chain.c
View file @
a5361e45
...
...
@@ -2156,6 +2156,18 @@ static const ChainPolicyCheck basePolicyCheck[] = {
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain12
)
/
sizeof
(
chain12
[
0
]),
chain12
},
{
0
,
TRUST_E_CERT_SIGNATURE
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain13
)
/
sizeof
(
chain13
[
0
]),
chain13
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain14
)
/
sizeof
(
chain14
[
0
]),
chain14
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain15
)
/
sizeof
(
chain15
[
0
]),
chain15
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain16
)
/
sizeof
(
chain16
[
0
]),
chain16
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain17
)
/
sizeof
(
chain17
[
0
]),
chain17
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
2
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain18
)
/
sizeof
(
chain18
[
0
]),
chain18
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
2
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
selfSignedChain
)
/
sizeof
(
selfSignedChain
[
0
]),
selfSignedChain
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
0
,
NULL
},
NULL
,
0
},
};
...
...
@@ -2187,6 +2199,18 @@ static const ChainPolicyCheck sslPolicyCheck[] = {
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain12
)
/
sizeof
(
chain12
[
0
]),
chain12
},
{
0
,
TRUST_E_CERT_SIGNATURE
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain13
)
/
sizeof
(
chain13
[
0
]),
chain13
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain14
)
/
sizeof
(
chain14
[
0
]),
chain14
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain15
)
/
sizeof
(
chain15
[
0
]),
chain15
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain16
)
/
sizeof
(
chain16
[
0
]),
chain16
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain17
)
/
sizeof
(
chain17
[
0
]),
chain17
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
2
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain18
)
/
sizeof
(
chain18
[
0
]),
chain18
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
2
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
selfSignedChain
)
/
sizeof
(
selfSignedChain
[
0
]),
selfSignedChain
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
0
,
NULL
},
NULL
,
0
},
};
...
...
@@ -2237,6 +2261,18 @@ static const ChainPolicyCheck authenticodePolicyCheck[] = {
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain12
)
/
sizeof
(
chain12
[
0
]),
chain12
},
{
0
,
TRUST_E_CERT_SIGNATURE
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain13
)
/
sizeof
(
chain13
[
0
]),
chain13
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain14
)
/
sizeof
(
chain14
[
0
]),
chain14
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain15
)
/
sizeof
(
chain15
[
0
]),
chain15
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain16
)
/
sizeof
(
chain16
[
0
]),
chain16
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain17
)
/
sizeof
(
chain17
[
0
]),
chain17
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
2
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain18
)
/
sizeof
(
chain18
[
0
]),
chain18
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
2
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
selfSignedChain
)
/
sizeof
(
selfSignedChain
[
0
]),
selfSignedChain
},
{
0
,
CERT_E_UNTRUSTEDROOT
,
0
,
0
,
NULL
},
NULL
,
0
},
};
...
...
@@ -2275,6 +2311,18 @@ static const ChainPolicyCheck basicConstraintsPolicyCheck[] = {
{
0
,
0
,
-
1
,
-
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain12
)
/
sizeof
(
chain12
[
0
]),
chain12
},
{
0
,
0
,
-
1
,
-
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain13
)
/
sizeof
(
chain13
[
0
]),
chain13
},
{
0
,
0
,
-
1
,
-
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain14
)
/
sizeof
(
chain14
[
0
]),
chain14
},
{
0
,
0
,
-
1
,
-
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain15
)
/
sizeof
(
chain15
[
0
]),
chain15
},
{
0
,
0
,
-
1
,
-
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain16
)
/
sizeof
(
chain16
[
0
]),
chain16
},
{
0
,
0
,
-
1
,
-
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain17
)
/
sizeof
(
chain17
[
0
]),
chain17
},
{
0
,
0
,
-
1
,
-
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
chain18
)
/
sizeof
(
chain18
[
0
]),
chain18
},
{
0
,
0
,
-
1
,
-
1
,
NULL
},
NULL
,
0
},
{
{
sizeof
(
selfSignedChain
)
/
sizeof
(
selfSignedChain
[
0
]),
selfSignedChain
},
{
0
,
0
,
-
1
,
-
1
,
NULL
},
NULL
,
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