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
a0dc2adf
Commit
a0dc2adf
authored
Apr 15, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Fix tests on systems where google chain root is not trusted.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
14920064
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
chain.c
dlls/crypt32/tests/chain.c
+8
-5
No files found.
dlls/crypt32/tests/chain.c
View file @
a0dc2adf
...
...
@@ -5091,7 +5091,8 @@ static void check_base_policy(void)
CERT_CHAIN_POLICY_IGNORE_NOT_TIME_VALID_FLAG
;
CHECK_CHAIN_POLICY_STATUS
(
CERT_CHAIN_POLICY_BASE
,
NULL
,
ignoredBadDateNestingBasePolicyCheck
,
&
oct2007
,
&
policyPara
);
policyPara
.
dwFlags
=
CERT_CHAIN_POLICY_IGNORE_NOT_TIME_VALID_FLAG
;
policyPara
.
dwFlags
=
CERT_CHAIN_POLICY_ALLOW_UNKNOWN_CA_FLAG
|
CERT_CHAIN_POLICY_IGNORE_NOT_TIME_VALID_FLAG
;
CHECK_CHAIN_POLICY_STATUS
(
CERT_CHAIN_POLICY_BASE
,
NULL
,
ignoredInvalidDateBasePolicyCheck
,
&
oct2007
,
&
policyPara
);
policyPara
.
dwFlags
=
CERT_CHAIN_POLICY_ALLOW_UNKNOWN_CA_FLAG
|
...
...
@@ -5134,7 +5135,7 @@ static void check_authenticode_policy(void)
epochStart
.
wYear
=
1601
;
CHECK_CHAIN_POLICY_STATUS
(
CERT_CHAIN_POLICY_AUTHENTICODE
,
NULL
,
ignoredUnknownCAPolicyCheck
,
&
epochStart
,
&
policyPara
);
policyPara
.
dwFlags
=
CERT_CHAIN_POLICY_IGNORE_NOT_TIME_VALID_FLAG
;
policyPara
.
dwFlags
|
=
CERT_CHAIN_POLICY_IGNORE_NOT_TIME_VALID_FLAG
;
CHECK_CHAIN_POLICY_STATUS
(
CERT_CHAIN_POLICY_AUTHENTICODE
,
NULL
,
ignoredInvalidDateBasePolicyCheck
,
&
oct2007
,
&
policyPara
);
}
...
...
@@ -5228,22 +5229,24 @@ static void check_ssl_policy(void)
policyPara
.
dwFlags
=
CERT_CHAIN_POLICY_ALLOW_UNKNOWN_CA_FLAG
;
CHECK_CHAIN_POLICY_STATUS
(
CERT_CHAIN_POLICY_SSL
,
NULL
,
ignoredUnknownCAPolicyCheck
,
&
oct2007
,
&
policyPara
);
policyPara
.
dwFlags
=
0
;
/* And again, but checking the Google chain at a bad date */
sslPolicyPara
.
pwszServerName
=
google_dot_com
;
CHECK_CHAIN_POLICY_STATUS
(
CERT_CHAIN_POLICY_SSL
,
NULL
,
googlePolicyCheckWithMatchingNameExpired
,
&
oct2007
,
&
policyPara
);
policyPara
.
dwFlags
=
0
;
/* Again checking the Google chain at a bad date, but ignoring date
* errors.
*/
sslPolicyPara
.
fdwChecks
=
SECURITY_FLAG_IGNORE_CERT_DATE_INVALID
;
sslPolicyPara
.
fdwChecks
=
SECURITY_FLAG_IGNORE_UNKNOWN_CA
|
SECURITY_FLAG_IGNORE_CERT_DATE_INVALID
;
CHECK_CHAIN_POLICY_STATUS
(
CERT_CHAIN_POLICY_SSL
,
NULL
,
googlePolicyCheckWithMatchingName
,
&
oct2007
,
&
policyPara
);
sslPolicyPara
.
fdwChecks
=
0
;
/* And again, but checking the Google chain at a good date */
sslPolicyPara
.
fdwChecks
=
SECURITY_FLAG_IGNORE_UNKNOWN_CA
;
sslPolicyPara
.
pwszServerName
=
google_dot_com
;
CHECK_CHAIN_POLICY_STATUS
(
CERT_CHAIN_POLICY_SSL
,
NULL
,
googlePolicyCheckWithMatchingName
,
&
nov2016
,
&
policyPara
);
sslPolicyPara
.
fdwChecks
=
0
;
/* Check again with the openssl cert, which has a wildcard in its name,
* with various combinations of matching and non-matching names.
...
...
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