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
0b19e855
Commit
0b19e855
authored
Aug 28, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Add support for secure connections.
parent
02ca43cb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
303 additions
and
5 deletions
+303
-5
net.c
dlls/winhttp/net.c
+291
-3
request.c
dlls/winhttp/request.c
+6
-0
session.c
dlls/winhttp/session.c
+1
-1
winhttp_private.h
dlls/winhttp/winhttp_private.h
+5
-1
No files found.
dlls/winhttp/net.c
View file @
0b19e855
This diff is collapsed.
Click to expand it.
dlls/winhttp/request.c
View file @
0b19e855
...
...
@@ -683,6 +683,12 @@ static BOOL open_connection( request_t *request )
heap_free
(
addressW
);
return
FALSE
;
}
if
(
request
->
hdr
.
flags
&
WINHTTP_FLAG_SECURE
&&
!
netconn_secure_connect
(
&
request
->
netconn
))
{
netconn_close
(
&
request
->
netconn
);
heap_free
(
addressW
);
return
FALSE
;
}
send_callback
(
&
request
->
hdr
,
WINHTTP_CALLBACK_STATUS_CONNECTED_TO_SERVER
,
addressW
,
0
);
...
...
dlls/winhttp/session.c
View file @
0b19e855
...
...
@@ -270,7 +270,7 @@ HINTERNET WINAPI WinHttpOpenRequest( HINTERNET hconnect, LPCWSTR verb, LPCWSTR o
request
->
connect
=
connect
;
list_add_head
(
&
connect
->
hdr
.
children
,
&
request
->
hdr
.
entry
);
if
(
!
netconn_init
(
&
request
->
netconn
))
goto
end
;
if
(
!
netconn_init
(
&
request
->
netconn
,
request
->
hdr
.
flags
&
WINHTTP_FLAG_SECURE
))
goto
end
;
if
(
!
verb
)
verb
=
get
;
if
(
!
object
)
object
=
slash
;
...
...
dlls/winhttp/winhttp_private.h
View file @
0b19e855
...
...
@@ -87,6 +87,9 @@ typedef struct
typedef
struct
{
int
socket
;
BOOL
secure
;
/* SSL active on connection? */
void
*
ssl_ctx
;
void
*
ssl_conn
;
char
*
peek_msg
;
char
*
peek_msg_mem
;
size_t
peek_len
;
...
...
@@ -130,10 +133,11 @@ BOOL netconn_connect( netconn_t *, const struct sockaddr *, unsigned int );
BOOL
netconn_connected
(
netconn_t
*
);
BOOL
netconn_create
(
netconn_t
*
,
int
,
int
,
int
);
BOOL
netconn_get_next_line
(
netconn_t
*
,
char
*
,
DWORD
*
);
BOOL
netconn_init
(
netconn_t
*
);
BOOL
netconn_init
(
netconn_t
*
,
BOOL
);
BOOL
netconn_query_data_available
(
netconn_t
*
,
DWORD
*
);
BOOL
netconn_recv
(
netconn_t
*
,
void
*
,
size_t
,
int
,
int
*
);
BOOL
netconn_resolve
(
WCHAR
*
,
INTERNET_PORT
,
struct
sockaddr_in
*
);
BOOL
netconn_secure_connect
(
netconn_t
*
);
BOOL
netconn_send
(
netconn_t
*
,
const
void
*
,
size_t
,
int
,
int
*
);
static
inline
void
*
heap_alloc
(
SIZE_T
size
)
...
...
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