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
8dde5c51
Commit
8dde5c51
authored
May 19, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
May 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Combine certificate errors in HTTP_OpenConnection.
parent
ee72094c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
http.c
dlls/wininet/http.c
+11
-0
netconnection.c
dlls/wininet/netconnection.c
+3
-1
No files found.
dlls/wininet/http.c
View file @
8dde5c51
...
...
@@ -4381,6 +4381,17 @@ static DWORD HTTP_OpenConnection(http_request_t *lpwhr)
if
(
res
!=
ERROR_SUCCESS
)
{
WARN
(
"Couldn't connect securely to host
\n
"
);
if
((
lpwhr
->
hdr
.
ErrorMask
&
INTERNET_ERROR_MASK_COMBINED_SEC_CERT
)
&&
(
res
==
ERROR_INTERNET_SEC_CERT_DATE_INVALID
||
res
==
ERROR_INTERNET_INVALID_CA
||
res
==
ERROR_INTERNET_SEC_CERT_NO_REV
||
res
==
ERROR_INTERNET_SEC_CERT_REV_FAILED
||
res
==
ERROR_INTERNET_SEC_CERT_REVOKED
||
res
==
ERROR_INTERNET_SEC_INVALID_CERT
||
res
==
ERROR_INTERNET_SEC_CERT_CN_INVALID
))
res
=
ERROR_INTERNET_SEC_CERT_ERRORS
;
HTTPREQ_CloseConnection
(
&
lpwhr
->
hdr
);
goto
lend
;
}
...
...
dlls/wininet/netconnection.c
View file @
8dde5c51
...
...
@@ -331,7 +331,9 @@ static int netconn_secure_verify(int preverify_ok, X509_STORE_CTX *ctx)
CertFreeCertificateContext
(
endCert
);
CertCloseStore
(
store
,
0
);
}
}
}
else
pSSL_set_ex_data
(
ssl
,
error_idx
,
(
void
*
)
ERROR_INTERNET_SEC_CERT_ERRORS
);
return
ret
;
}
...
...
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