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
c4ae9e9c
Commit
c4ae9e9c
authored
Oct 07, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Oct 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Add more tests of the authenticode policy.
parent
ca7512d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
+23
-6
chain.c
dlls/crypt32/tests/chain.c
+23
-6
No files found.
dlls/crypt32/tests/chain.c
View file @
c4ae9e9c
...
...
@@ -4278,6 +4278,28 @@ static void check_base_policy(void)
invalidExtensionPolicyCheck
,
&
oct2007
,
&
policyPara
);
}
static
void
check_authenticode_policy
(
void
)
{
CERT_CHAIN_POLICY_PARA
policyPara
=
{
0
};
SYSTEMTIME
epochStart
=
{
0
};
/* The authenticode policy doesn't seem to check anything beyond the base
* policy. It might check for chains signed by the MS test cert, but none
* of these chains is.
*/
CHECK_CHAIN_POLICY_STATUS_ARRAY
(
CERT_CHAIN_POLICY_AUTHENTICODE
,
NULL
,
authenticodePolicyCheck
,
&
oct2007
,
NULL
);
policyPara
.
cbSize
=
sizeof
(
policyPara
);
policyPara
.
dwFlags
=
CERT_CHAIN_POLICY_ALLOW_UNKNOWN_CA_FLAG
;
CHECK_CHAIN_POLICY_STATUS
(
CERT_CHAIN_POLICY_AUTHENTICODE
,
NULL
,
ignoredUnknownCAPolicyCheck
,
&
oct2007
,
&
policyPara
);
CHECK_CHAIN_POLICY_STATUS
(
CERT_CHAIN_POLICY_AUTHENTICODE
,
NULL
,
ignoredUnknownCAPolicyCheck
,
&
epochStart
,
&
policyPara
);
policyPara
.
dwFlags
=
CERT_CHAIN_POLICY_IGNORE_NOT_TIME_VALID_FLAG
;
CHECK_CHAIN_POLICY_STATUS
(
CERT_CHAIN_POLICY_AUTHENTICODE
,
NULL
,
ignoredInvalidDateBasePolicyCheck
,
&
oct2007
,
&
policyPara
);
}
static
void
check_ssl_policy
(
void
)
{
CERT_CHAIN_POLICY_PARA
policyPara
=
{
0
};
...
...
@@ -4516,12 +4538,7 @@ static void testVerifyCertChainPolicy(void)
check_base_policy
();
check_ssl_policy
();
/* The authenticode policy doesn't seem to check anything beyond the base
* policy. It might check for chains signed by the MS test cert, but none
* of these chains is.
*/
CHECK_CHAIN_POLICY_STATUS_ARRAY
(
CERT_CHAIN_POLICY_AUTHENTICODE
,
NULL
,
authenticodePolicyCheck
,
&
oct2007
,
NULL
);
check_authenticode_policy
();
CHECK_CHAIN_POLICY_STATUS_ARRAY
(
CERT_CHAIN_POLICY_BASIC_CONSTRAINTS
,
NULL
,
basicConstraintsPolicyCheck
,
&
oct2007
,
NULL
);
}
...
...
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