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
25de5d7a
Commit
25de5d7a
authored
Jan 23, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Enable more OpenSSL-independent code when OpenSSL is not available.
parent
0ebbd991
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
net.c
dlls/winhttp/net.c
+4
-9
No files found.
dlls/winhttp/net.c
View file @
25de5d7a
...
...
@@ -414,6 +414,8 @@ BOOL netconn_init( netconn_t *conn, BOOL secure )
{
#if defined(SONAME_LIBSSL) && defined(SONAME_LIBCRYPTO)
int
i
;
#else
memset
(
conn
,
0
,
sizeof
(
*
conn
));
#endif
conn
->
socket
=
-
1
;
...
...
@@ -549,10 +551,6 @@ BOOL netconn_init( netconn_t *conn, BOOL secure )
pCRYPTO_set_locking_callback
(
ssl_lock_callback
);
LeaveCriticalSection
(
&
init_ssl_cs
);
#else
WARN
(
"SSL support not compiled in.
\n
"
);
set_last_error
(
ERROR_WINHTTP_SECURE_CHANNEL_ERROR
);
return
FALSE
;
#endif
return
TRUE
;
}
...
...
@@ -835,8 +833,9 @@ BOOL netconn_query_data_available( netconn_t *conn, DWORD *available )
if
(
conn
->
secure
)
{
*
available
=
conn
->
peek_len
;
#ifdef SONAME_LIBSSL
*
available
=
pSSL_pending
(
conn
->
ssl_conn
)
+
conn
->
peek_len
;
*
available
+=
pSSL_pending
(
conn
->
ssl_conn
)
;
#endif
return
TRUE
;
}
...
...
@@ -856,7 +855,6 @@ BOOL netconn_get_next_line( netconn_t *conn, char *buffer, DWORD *buflen )
if
(
conn
->
secure
)
{
#ifdef SONAME_LIBSSL
while
(
recvd
<
*
buflen
)
{
int
dummy
;
...
...
@@ -879,9 +877,6 @@ BOOL netconn_get_next_line( netconn_t *conn, char *buffer, DWORD *buflen )
TRACE
(
"received line %s
\n
"
,
debugstr_a
(
buffer
));
}
return
ret
;
#else
return
FALSE
;
#endif
}
pfd
.
fd
=
conn
->
socket
;
...
...
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