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
d6c9c7a0
Commit
d6c9c7a0
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: Honor SECURITY_FLAG_IGNORE_CERT_CN_INVALID.
parent
e922faec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
chain.c
dlls/crypt32/chain.c
+3
-1
chain.c
dlls/crypt32/tests/chain.c
+1
-6
No files found.
dlls/crypt32/chain.c
View file @
d6c9c7a0
...
...
@@ -23,6 +23,7 @@
#define CERT_CHAIN_PARA_HAS_EXTRA_FIELDS
#define CERT_REVOCATION_PARA_HAS_EXTRA_FIELDS
#include "wincrypt.h"
#include "wininet.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "crypt32_private.h"
...
...
@@ -3331,7 +3332,8 @@ static BOOL WINAPI verify_ssl_policy(LPCSTR szPolicyOID,
if
(
sslPara
&&
sslPara
->
u
.
cbSize
>=
sizeof
(
HTTPSPolicyCallbackData
))
{
if
(
sslPara
->
dwAuthType
==
AUTHTYPE_SERVER
&&
sslPara
->
pwszServerName
)
sslPara
->
pwszServerName
&&
!
(
sslPara
->
fdwChecks
&
SECURITY_FLAG_IGNORE_CERT_CN_INVALID
))
{
PCCERT_CONTEXT
cert
;
PCERT_EXTENSION
altNameExt
;
...
...
dlls/crypt32/tests/chain.c
View file @
d6c9c7a0
...
...
@@ -3822,11 +3822,6 @@ 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
...
...
@@ -4207,7 +4202,7 @@ static void check_ssl_policy(void)
/* When specifying to ignore name mismatch: match */
sslPolicyPara
.
fdwChecks
|=
SECURITY_FLAG_IGNORE_CERT_CN_INVALID
;
checkChainPolicyStatus
(
CERT_CHAIN_POLICY_SSL
,
engine
,
&
winehqPolicyCheckWith
IgnoredNon
MatchingName
,
0
,
&
oct2007
,
&
policyPara
);
&
winehqPolicyCheckWithMatchingName
,
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