Page 1 of 1

OpenSSL DLL problem

Posted: Fri 26 Dec 2008 23:49
by snorkel
Hi,
My app uses open ssl DLLs compiled with mingw and they are named:

libssl32.dll and libeay32.dll

The current build does not seem to recognize libssl32.dll

When compiled with mingw they are always named this way.

I have the two DLLs in my app directory and I get this error:

First chance exception at $7C812AEB. Exception class EOSError with message 'OpenSSL client library couldn't be loaded. Please place libeay32.dll and ssleay32.dll to system folder (included to PATH) or to the folder with executable unit of main program.'. Process pg_lightning_admin.exe (1004)

You can't just rename the dlls as they are dependent on each other with the names they where compiled with.

Thanks,

Snorkel

Posted: Mon 29 Dec 2008 12:38
by Dimon
The point is that ssleay32.dll is the standard name of the OpenSSL library, therefore PgDAC tries to load a library with this name.
However we will fix this problem and will add the possibility to use the libssl32.dll name instead of ssleay32.dll. This fix will be included in the next PgDAC build.

Posted: Mon 29 Dec 2008 20:19
by snorkel
Dimon wrote:The point is that ssleay32.dll is the standard name of the OpenSSL library, therefore PgDAC tries to load a library with this name.
However we will fix this problem and will add the possibility to use the libssl32.dll name instead of ssleay32.dll. This fix will be included in the next PgDAC build.
Hi Thanks,

ssleay32.dll is the name when compiled with MS VC++, however when you compile it with mingw the default name is libssl32.dll. Why this is I have no idea, but in the wild you will see both names used extensivly.
I guess the standard pratice is to do a loadlibrary with the first name and if that failes then do it again with the second name.

Thanks,

Snorkel