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
c6ee6d6c
Commit
c6ee6d6c
authored
Mar 01, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Renamed useSSL to secure and set it after secure connection is established.
parent
b0fc000c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
http.c
dlls/wininet/http.c
+1
-1
internet.h
dlls/wininet/internet.h
+1
-1
netconnection.c
dlls/wininet/netconnection.c
+9
-9
No files found.
dlls/wininet/http.c
View file @
c6ee6d6c
...
...
@@ -1968,7 +1968,7 @@ static DWORD HTTPREQ_QueryOption(object_header_t *hdr, DWORD option, void *buffe
info
->
Flags
|=
IDSI_FLAG_KEEP_ALIVE
;
if
(
req
->
proxy
)
info
->
Flags
|=
IDSI_FLAG_PROXY
;
if
(
req
->
netconn
->
useSSL
)
if
(
req
->
netconn
->
secure
)
info
->
Flags
|=
IDSI_FLAG_SECURE
;
return
ERROR_SUCCESS
;
...
...
dlls/wininet/internet.h
View file @
c6ee6d6c
...
...
@@ -89,7 +89,7 @@ BOOL collect_connections(collect_type_t) DECLSPEC_HIDDEN;
/* used for netconnection.c stuff */
typedef
struct
{
BOOL
useSSL
;
BOOL
secure
;
int
socketFD
;
void
*
ssl_s
;
server_t
*
server
;
...
...
dlls/wininet/netconnection.c
View file @
c6ee6d6c
...
...
@@ -848,6 +848,7 @@ static DWORD netcon_secure_connect_setup(netconn_t *connection, long tls_option)
}
connection
->
ssl_s
=
ssl_s
;
connection
->
secure
=
TRUE
;
bits
=
NETCON_GetCipherStrength
(
connection
);
if
(
bits
>=
128
)
...
...
@@ -879,21 +880,20 @@ fail:
DWORD
NETCON_secure_connect
(
netconn_t
*
connection
,
server_t
*
server
)
{
DWORD
res
=
ERROR_NOT_SUPPORTED
;
#ifdef SONAME_LIBSSL
/* can't connect if we are already connected */
if
(
connection
->
ssl_s
)
{
if
(
connection
->
secure
)
{
ERR
(
"already connected
\n
"
);
return
ERROR_INTERNET_CANNOT_CONNECT
;
}
connection
->
useSSL
=
TRUE
;
if
(
server
!=
connection
->
server
)
{
server_release
(
connection
->
server
);
server_addref
(
server
);
connection
->
server
=
server
;
}
#ifdef SONAME_LIBSSL
/* connect with given TLS options */
res
=
netcon_secure_connect_setup
(
connection
,
get_tls_option
());
if
(
res
==
ERROR_SUCCESS
)
...
...
@@ -926,7 +926,7 @@ DWORD NETCON_secure_connect(netconn_t *connection, server_t *server)
DWORD
NETCON_send
(
netconn_t
*
connection
,
const
void
*
msg
,
size_t
len
,
int
flags
,
int
*
sent
/* out */
)
{
if
(
!
connection
->
useSSL
)
if
(
!
connection
->
secure
)
{
*
sent
=
send
(
connection
->
socketFD
,
msg
,
len
,
flags
);
if
(
*
sent
==
-
1
)
...
...
@@ -958,13 +958,13 @@ DWORD NETCON_send(netconn_t *connection, const void *msg, size_t len, int flags,
* Basically calls 'recv()' unless we should use SSL
* number of chars received is put in *recvd
*/
DWORD
NETCON_recv
(
netconn_t
*
connection
,
void
*
buf
,
size_t
len
,
int
flags
,
int
*
recvd
/* out */
)
DWORD
NETCON_recv
(
netconn_t
*
connection
,
void
*
buf
,
size_t
len
,
int
flags
,
int
*
recvd
)
{
*
recvd
=
0
;
if
(
!
len
)
return
ERROR_SUCCESS
;
if
(
!
connection
->
useSSL
)
if
(
!
connection
->
secure
)
{
*
recvd
=
recv
(
connection
->
socketFD
,
buf
,
len
,
flags
);
return
*
recvd
==
-
1
?
sock_get_error
(
errno
)
:
ERROR_SUCCESS
;
...
...
@@ -1000,7 +1000,7 @@ BOOL NETCON_query_data_available(netconn_t *connection, DWORD *available)
{
*
available
=
0
;
if
(
!
connection
->
useSSL
)
if
(
!
connection
->
secure
)
{
#ifdef FIONREAD
int
unread
;
...
...
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