Commit 12157fac authored by Alexandre Julliard's avatar Alexandre Julliard

crypt32: Use standard dlopen() instead of the libwine wrappers.

parent e39b3a2f
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/heap.h" #include "wine/heap.h"
#include "wine/library.h"
#include "wine/unicode.h" #include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(crypt); WINE_DEFAULT_DEBUG_CHANNEL(crypt);
...@@ -72,14 +71,14 @@ BOOL gnutls_initialize(void) ...@@ -72,14 +71,14 @@ BOOL gnutls_initialize(void)
{ {
int ret; int ret;
if (!(libgnutls_handle = wine_dlopen( SONAME_LIBGNUTLS, RTLD_NOW, NULL, 0 ))) if (!(libgnutls_handle = dlopen( SONAME_LIBGNUTLS, RTLD_NOW )))
{ {
ERR_(winediag)( "failed to load libgnutls, no support for pfx import/export\n" ); ERR_(winediag)( "failed to load libgnutls, no support for pfx import/export\n" );
return FALSE; return FALSE;
} }
#define LOAD_FUNCPTR(f) \ #define LOAD_FUNCPTR(f) \
if (!(p##f = wine_dlsym( libgnutls_handle, #f, NULL, 0 ))) \ if (!(p##f = dlsym( libgnutls_handle, #f ))) \
{ \ { \
ERR( "failed to load %s\n", #f ); \ ERR( "failed to load %s\n", #f ); \
goto fail; \ goto fail; \
...@@ -114,7 +113,7 @@ BOOL gnutls_initialize(void) ...@@ -114,7 +113,7 @@ BOOL gnutls_initialize(void)
return TRUE; return TRUE;
fail: fail:
wine_dlclose( libgnutls_handle, NULL, 0 ); dlclose( libgnutls_handle );
libgnutls_handle = NULL; libgnutls_handle = NULL;
return FALSE; return FALSE;
} }
...@@ -122,7 +121,7 @@ fail: ...@@ -122,7 +121,7 @@ fail:
void gnutls_uninitialize(void) void gnutls_uninitialize(void)
{ {
pgnutls_global_deinit(); pgnutls_global_deinit();
wine_dlclose( libgnutls_handle, NULL, 0 ); dlclose( libgnutls_handle );
libgnutls_handle = NULL; libgnutls_handle = NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment