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
d7d8a0ee
Commit
d7d8a0ee
authored
Oct 02, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Oct 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Unload OpenSSL when unloading winhttp.
parent
349e8250
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
main.c
dlls/winhttp/main.c
+1
-0
net.c
dlls/winhttp/net.c
+16
-0
winhttp_private.h
dlls/winhttp/winhttp_private.h
+1
-0
No files found.
dlls/winhttp/main.c
View file @
d7d8a0ee
...
...
@@ -42,6 +42,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
DisableThreadLibraryCalls
(
hInstDLL
);
break
;
case
DLL_PROCESS_DETACH
:
netconn_unload
();
break
;
}
return
TRUE
;
...
...
dlls/winhttp/net.c
View file @
d7d8a0ee
...
...
@@ -97,6 +97,7 @@ static SSL_CTX *ctx;
MAKE_FUNCPTR
(
SSL_library_init
);
MAKE_FUNCPTR
(
SSL_load_error_strings
);
MAKE_FUNCPTR
(
SSLv23_method
);
MAKE_FUNCPTR
(
SSL_CTX_free
);
MAKE_FUNCPTR
(
SSL_CTX_new
);
MAKE_FUNCPTR
(
SSL_new
);
MAKE_FUNCPTR
(
SSL_free
);
...
...
@@ -221,6 +222,7 @@ BOOL netconn_init( netconn_t *conn, BOOL secure )
LOAD_FUNCPTR
(
SSL_library_init
);
LOAD_FUNCPTR
(
SSL_load_error_strings
);
LOAD_FUNCPTR
(
SSLv23_method
);
LOAD_FUNCPTR
(
SSL_CTX_free
);
LOAD_FUNCPTR
(
SSL_CTX_new
);
LOAD_FUNCPTR
(
SSL_new
);
LOAD_FUNCPTR
(
SSL_free
);
...
...
@@ -270,6 +272,20 @@ BOOL netconn_init( netconn_t *conn, BOOL secure )
return
TRUE
;
}
void
netconn_unload
(
void
)
{
#if defined(SONAME_LIBSSL) && defined(SONAME_LIBCRYPTO)
if
(
libcrypto_handle
)
wine_dlclose
(
libcrypto_handle
,
NULL
,
0
);
if
(
libssl_handle
)
{
if
(
ctx
)
pSSL_CTX_free
(
ctx
);
wine_dlclose
(
libssl_handle
,
NULL
,
0
);
}
#endif
}
BOOL
netconn_connected
(
netconn_t
*
conn
)
{
return
(
conn
->
socket
!=
-
1
);
...
...
dlls/winhttp/winhttp_private.h
View file @
d7d8a0ee
...
...
@@ -215,6 +215,7 @@ 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
);
void
netconn_unload
(
void
);
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
*
,
socklen_t
*
);
...
...
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