http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
777b06f
)
wininet: Honor security flags specified when opening a connection.
author
Juan Lang
<juan.lang@gmail.com>
Thu, 7 Apr 2011 15:05:36 +0000
(08:05 -0700)
committer
Alexandre Julliard
<julliard@winehq.org>
Thu, 7 Apr 2011 15:48:28 +0000
(17:48 +0200)
dlls/wininet/http.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/wininet/http.c
b/dlls/wininet/http.c
index b2b7bd964f5abaebe6c2c12f362920638908cb98..801357ce44cdcadd9778562ac193e03bc31047b4 100644
(file)
--- a/
dlls/wininet/http.c
+++ b/
dlls/wininet/http.c
@@
-2832,6
+2832,10
@@
static DWORD HTTP_HttpOpenRequestW(http_session_t *session,
if ((res = NETCON_init(&request->netConnection, dwFlags & INTERNET_FLAG_SECURE)) != ERROR_SUCCESS)
goto lend;
+ if (dwFlags & INTERNET_FLAG_IGNORE_CERT_CN_INVALID)
+ request->netConnection.security_flags |= SECURITY_FLAG_IGNORE_CERT_CN_INVALID;
+ if (dwFlags & INTERNET_FLAG_IGNORE_CERT_DATE_INVALID)
+ request->netConnection.security_flags |= SECURITY_FLAG_IGNORE_CERT_DATE_INVALID;
if (lpszObjectName && *lpszObjectName) {
HRESULT rc;