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
80d17a79
Commit
80d17a79
authored
Jul 26, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Set WINHTTP_FLAG_SECURE if the scheme is https.
parent
7227c29a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
request.c
dlls/winhttp/request.c
+9
-2
No files found.
dlls/winhttp/request.c
View file @
80d17a79
...
...
@@ -2429,6 +2429,7 @@ static HRESULT WINAPI winhttp_request_Open(
{
static
const
WCHAR
typeW
[]
=
{
'*'
,
'/'
,
'*'
,
0
};
static
const
WCHAR
*
acceptW
[]
=
{
typeW
,
NULL
};
static
const
WCHAR
httpsW
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
's'
};
static
const
WCHAR
user_agentW
[]
=
{
'M'
,
'o'
,
'z'
,
'i'
,
'l'
,
'l'
,
'a'
,
'/'
,
'4'
,
'.'
,
'0'
,
' '
,
'('
,
'c'
,
'o'
,
'm'
,
'p'
,
'a'
,
't'
,
'i'
,
'b'
,
'l'
,
'e'
,
';'
,
' '
,
'W'
,
'i'
,
'n'
,
'3'
,
'2'
,
';'
,
' '
,
'W'
,
'i'
,
'n'
,
'H'
,
't'
,
't'
,
'p'
,
'.'
,
'W'
,
'i'
,
'n'
,
'H'
,
't'
,
't'
,
'p'
,
...
...
@@ -2437,7 +2438,7 @@ static HRESULT WINAPI winhttp_request_Open(
HINTERNET
hsession
=
NULL
,
hconnect
=
NULL
,
hrequest
;
URL_COMPONENTS
uc
;
WCHAR
*
hostname
,
*
path
;
DWORD
err
,
flags
=
0
;
DWORD
err
,
len
,
flags
=
0
,
request_
flags
=
0
;
TRACE
(
"%p, %s, %s, %s
\n
"
,
request
,
debugstr_w
(
method
),
debugstr_w
(
url
),
debugstr_variant
(
&
async
));
...
...
@@ -2446,6 +2447,7 @@ static HRESULT WINAPI winhttp_request_Open(
memset
(
&
uc
,
0
,
sizeof
(
uc
)
);
uc
.
dwStructSize
=
sizeof
(
uc
);
uc
.
dwSchemeLength
=
~
0u
;
uc
.
dwHostNameLength
=
~
0u
;
uc
.
dwUrlPathLength
=
~
0u
;
if
(
!
WinHttpCrackUrl
(
url
,
0
,
0
,
&
uc
))
return
HRESULT_FROM_WIN32
(
get_last_error
()
);
...
...
@@ -2472,7 +2474,12 @@ static HRESULT WINAPI winhttp_request_Open(
err
=
get_last_error
();
goto
error
;
}
if
(
!
(
hrequest
=
WinHttpOpenRequest
(
hconnect
,
method
,
path
,
NULL
,
NULL
,
acceptW
,
0
)))
len
=
sizeof
(
httpsW
)
/
sizeof
(
WCHAR
);
if
(
uc
.
dwSchemeLength
==
len
&&
!
memcmp
(
uc
.
lpszScheme
,
httpsW
,
len
*
sizeof
(
WCHAR
)
))
{
request_flags
|=
WINHTTP_FLAG_SECURE
;
}
if
(
!
(
hrequest
=
WinHttpOpenRequest
(
hconnect
,
method
,
path
,
NULL
,
NULL
,
acceptW
,
request_flags
)))
{
err
=
get_last_error
();
goto
error
;
...
...
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