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
d654ff6d
Commit
d654ff6d
authored
Dec 31, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Dec 31, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Handle CERT_TRUST_IS_NOT_SIGNATURE_VALID in netconn_verify_cert().
parent
9d9e1cc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
netconnection.c
dlls/wininet/netconnection.c
+12
-0
No files found.
dlls/wininet/netconnection.c
View file @
d654ff6d
...
...
@@ -112,6 +112,7 @@ static DWORD netconn_verify_cert(netconn_t *conn, PCCERT_CONTEXT cert, HCERTSTOR
CERT_TRUST_IS_NOT_TIME_VALID
|
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_IS_PARTIAL_CHAIN
|
CERT_TRUST_IS_NOT_SIGNATURE_VALID
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
;
TRACE
(
"verifying %s
\n
"
,
debugstr_w
(
conn
->
server
->
name
));
...
...
@@ -178,6 +179,17 @@ static DWORD netconn_verify_cert(netconn_t *conn, PCCERT_CONTEXT cert, HCERTSTOR
errors
&=
~
CERT_TRUST_IS_PARTIAL_CHAIN
;
}
if
(
errors
&
CERT_TRUST_IS_NOT_SIGNATURE_VALID
)
{
WARN
(
"CERT_TRUST_IS_NOT_SIGNATURE_VALID
\n
"
);
if
(
!
(
conn
->
security_flags
&
SECURITY_FLAG_IGNORE_UNKNOWN_CA
))
{
err
=
conn
->
mask_errors
&&
err
?
ERROR_INTERNET_SEC_CERT_ERRORS
:
ERROR_INTERNET_INVALID_CA
;
if
(
!
conn
->
mask_errors
)
break
;
conn
->
security_flags
|=
_SECURITY_FLAG_CERT_INVALID_CA
;
}
errors
&=
~
CERT_TRUST_IS_NOT_SIGNATURE_VALID
;
}
if
(
errors
&
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
)
{
WARN
(
"CERT_TRUST_IS_NOT_VALID_FOR_USAGE
\n
"
);
if
(
!
(
conn
->
security_flags
&
SECURITY_FLAG_IGNORE_WRONG_USAGE
))
{
...
...
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