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
e922faec
Commit
e922faec
authored
Aug 12, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Add a test of SSL_EXTRA_CERT_CHAIN_POLICY_PARA's fdwChecks field.
parent
aef6e3d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
chain.c
dlls/crypt32/tests/chain.c
+10
-0
No files found.
dlls/crypt32/tests/chain.c
View file @
e922faec
...
...
@@ -24,6 +24,7 @@
#include <winbase.h>
#include <winerror.h>
#include <wincrypt.h>
#include <wininet.h>
#include "wine/test.h"
...
...
@@ -3821,6 +3822,11 @@ static const ChainPolicyCheck winehqPolicyCheckWithMatchingName = {
{
0
,
0
,
-
1
,
-
1
,
NULL
},
NULL
,
0
};
static
const
ChainPolicyCheck
winehqPolicyCheckWithIgnoredNonMatchingName
=
{
{
sizeof
(
chain29
)
/
sizeof
(
chain29
[
0
]),
chain29
},
{
0
,
0
,
-
1
,
-
1
,
NULL
},
NULL
,
TODO_ERROR
};
static
const
ChainPolicyCheck
winehqPolicyCheckWithoutMatchingName
=
{
{
sizeof
(
chain29
)
/
sizeof
(
chain29
[
0
]),
chain29
},
{
0
,
CERT_E_CN_NO_MATCH
,
0
,
0
,
NULL
},
NULL
,
0
...
...
@@ -4198,6 +4204,10 @@ static void check_ssl_policy(void)
sslPolicyPara
.
pwszServerName
=
a_dot_b_dot_winehq_dot_org
;
checkChainPolicyStatus
(
CERT_CHAIN_POLICY_SSL
,
engine
,
&
winehqPolicyCheckWithoutMatchingName
,
0
,
&
oct2007
,
&
policyPara
);
/* When specifying to ignore name mismatch: match */
sslPolicyPara
.
fdwChecks
|=
SECURITY_FLAG_IGNORE_CERT_CN_INVALID
;
checkChainPolicyStatus
(
CERT_CHAIN_POLICY_SSL
,
engine
,
&
winehqPolicyCheckWithIgnoredNonMatchingName
,
0
,
&
oct2007
,
&
policyPara
);
CertFreeCertificateChainEngine
(
engine
);
CertCloseStore
(
testRoot
,
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