Openssl static build linked in DLL does not unload on win32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Using openssl 1.1.0c. 

I have a test application that is a win32 console app that calls a win32 DLL which has the openssl libraries linked in statically.

The test applications uses late-binding to the DLL and calls LoadLibrary for the DLL, one test function in the DLL, and then FreeLibrary on the DLL.

 

The test function in the DLL does the following:

RSA *rsa = NULL;

rsa = RSA_new();

RSA_free(rsa);

OPENSSL_thread_stop();

OPENSSL_cleanup();

return 0;

 

When FreeLibrary is called on the DLL, dllmain in never called with any messages.  A subsequent call to LoadLibrary also fails to call dllmain and when the test function is called RSA_new() fails.  This leads me to believe the DLL is never freed.

 

I have tried building openssl with and without no-threads with the same results.  My build parameters are:
perl Configure %TEMP_ARCHITECTURE% --prefix=%RootPath_ThirdParty%\%OPENSSL_VERSION% -DPURIFY -DOPENSSL_NO_COMP -D_USING_V110_SDK71_ no-shared no-threads no-asm  no-idea no-mdc2 no-rc5  no-ssl3 no-zlib no-comp

 

What am I missing?

 

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux