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
41592569
Commit
41592569
authored
Oct 02, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Oct 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Unload OpenSSL when unloading wininet.
parent
23842df3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
internet.c
dlls/wininet/internet.c
+2
-0
internet.h
dlls/wininet/internet.h
+1
-0
netconnection.c
dlls/wininet/netconnection.c
+16
-0
No files found.
dlls/wininet/internet.c
View file @
41592569
...
...
@@ -290,6 +290,8 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
case
DLL_PROCESS_DETACH
:
NETCON_unload
();
URLCacheContainers_DeleteAll
();
if
(
g_dwTlsErrIndex
!=
TLS_OUT_OF_INDEXES
)
...
...
dlls/wininet/internet.h
View file @
41592569
...
...
@@ -429,6 +429,7 @@ VOID INTERNET_SendCallback(object_header_t *hdr, DWORD_PTR dwContext,
BOOL
NETCON_connected
(
WININET_NETCONNECTION
*
connection
);
BOOL
NETCON_init
(
WININET_NETCONNECTION
*
connnection
,
BOOL
useSSL
);
void
NETCON_unload
(
void
);
BOOL
NETCON_create
(
WININET_NETCONNECTION
*
connection
,
int
domain
,
int
type
,
int
protocol
);
BOOL
NETCON_close
(
WININET_NETCONNECTION
*
connection
);
...
...
dlls/wininet/netconnection.c
View file @
41592569
...
...
@@ -120,6 +120,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
);
...
...
@@ -191,6 +192,7 @@ BOOL NETCON_init(WININET_NETCONNECTION *connection, BOOL useSSL)
DYNSSL
(
SSL_library_init
);
DYNSSL
(
SSL_load_error_strings
);
DYNSSL
(
SSLv23_method
);
DYNSSL
(
SSL_CTX_free
);
DYNSSL
(
SSL_CTX_new
);
DYNSSL
(
SSL_new
);
DYNSSL
(
SSL_free
);
...
...
@@ -246,6 +248,20 @@ BOOL NETCON_init(WININET_NETCONNECTION *connection, BOOL useSSL)
return
TRUE
;
}
void
NETCON_unload
(
void
)
{
#if defined(SONAME_LIBSSL) && defined(SONAME_LIBCRYPTO)
if
(
OpenSSL_crypto_handle
)
wine_dlclose
(
OpenSSL_crypto_handle
,
NULL
,
0
);
if
(
OpenSSL_ssl_handle
)
{
if
(
ctx
)
pSSL_CTX_free
(
ctx
);
wine_dlclose
(
OpenSSL_ssl_handle
,
NULL
,
0
);
}
#endif
}
BOOL
NETCON_connected
(
WININET_NETCONNECTION
*
connection
)
{
if
(
connection
->
socketFD
==
-
1
)
...
...
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