Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
125583c4
Commit
125583c4
authored
Mar 04, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use secure variable instead of ssl_s handle in a few more places.
parent
b039192d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
netconnection.c
dlls/wininet/netconnection.c
+7
-7
No files found.
dlls/wininet/netconnection.c
View file @
125583c4
...
...
@@ -702,12 +702,12 @@ void free_netconn(netconn_t *netconn)
{
server_release
(
netconn
->
server
);
if
(
netconn
->
secure
)
{
#ifdef SONAME_LIBSSL
if
(
netconn
->
ssl_s
)
{
pSSL_shutdown
(
netconn
->
ssl_s
);
pSSL_free
(
netconn
->
ssl_s
);
}
#endif
}
closesocket
(
netconn
->
socket
);
heap_free
(
netconn
);
...
...
@@ -936,7 +936,7 @@ DWORD NETCON_send(netconn_t *connection, const void *msg, size_t len, int flags,
else
{
#ifdef SONAME_LIBSSL
if
(
!
connection
->
s
sl_s
)
{
if
(
!
connection
->
s
ecure
)
{
FIXME
(
"not connected
\n
"
);
return
ERROR_NOT_SUPPORTED
;
}
...
...
@@ -972,7 +972,7 @@ DWORD NETCON_recv(netconn_t *connection, void *buf, size_t len, int flags, int *
else
{
#ifdef SONAME_LIBSSL
if
(
!
connection
->
s
sl_s
)
{
if
(
!
connection
->
s
ecure
)
{
FIXME
(
"not connected
\n
"
);
return
ERROR_NOT_SUPPORTED
;
}
...
...
@@ -1015,7 +1015,7 @@ BOOL NETCON_query_data_available(netconn_t *connection, DWORD *available)
else
{
#ifdef SONAME_LIBSSL
*
available
=
connection
->
ssl_s
?
pSSL_pending
(
connection
->
ssl_s
)
:
0
;
*
available
=
pSSL_pending
(
connection
->
ssl_s
)
;
#else
FIXME
(
"not supported on this platform
\n
"
);
return
FALSE
;
...
...
@@ -1060,7 +1060,7 @@ LPCVOID NETCON_GetCert(netconn_t *connection)
X509
*
cert
;
LPCVOID
r
=
NULL
;
if
(
!
connection
->
s
sl_s
)
if
(
!
connection
->
s
ecure
)
return
NULL
;
cert
=
pSSL_get_peer_certificate
(
connection
->
ssl_s
);
...
...
@@ -1082,7 +1082,7 @@ int NETCON_GetCipherStrength(netconn_t *connection)
#endif
int
bits
=
0
;
if
(
!
connection
->
s
sl_s
)
if
(
!
connection
->
s
ecure
)
return
0
;
cipher
=
pSSL_get_current_cipher
(
connection
->
ssl_s
);
if
(
!
cipher
)
...
...
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