Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error: Could not load SSL library
#7
(05-09-2018, 08:49 AM)RaelB Wrote: Is it possible for me to rename the dlls and then set a custom name for the dlls in Indy?

The filenames are hard-coded in Indy's source code. Even if you renamed the DLLs and recompiled Indy, it still wouldn't work, because ssleay32.dll has dependencies on functions exported from libeay32.dll, so renaming that DLL would break those dependencies. You would have to recompile OpenSSL itself.

(05-09-2018, 03:19 PM)RaelB Wrote: Report from user:
Failed (using sslvTLSv1_2) for url: https://www.creativepegworks.com/
Error: EIdOSSLCouldNotLoadSSLLibrary, Could not load SSL library.
"Failed to load C:\Users\hjhu\Desktop\HttpsTestv1.2\libeay32.dll."
Failed (using sslvTLSv23) for url: https://www.creativepegworks.com/
Error: EIdOSSLCouldNotLoadSSLLibrary, Could not load SSL library.
"Failed to load C:\Users\hjhu\Desktop\HttpsTestv1.2\libeay32.dll."

"Failed to load..." is from call to WhichFailedToLoad()
This proves that Indy is looking for the correct dlls. However, the program still fails.
However, works fine for me on Windows 10.

http://www.bauerapps.com/dev/HttpsTest.zip

Any ideas?

Usually, when the DLLs themselves fail to load into memory, it is because they likely have dependencies on additional DLLs that are missing on the user's system, such as Microsoft's VC++ runtime DLLs. Try using the OpenSSL DLLs at http://indy.fulgan.com/SSL/, they don't have any extra dependencies (only to each other).

(05-09-2018, 01:54 PM)BartKindt Wrote: Use a special directory for your SSL files, then force Indy to use this directory.
If you don't do this, Windows (?) will try to find the files anywhere on the system (using the global Path), and you may end up using some very old and dangerous versions, or incompatible ones.

Windows doesn't look just anywhere, it has very specific places it looks for DLLs. If you don't use IdOpenSSLSetLibPath() to set a specific folder, you still have some control over where Windows looks, via SetDllDirectory(), AddDllDirectory(), and SetDefaultDllDirectories(). This is also important when dealing with OpenSSL DLLs that have external dependencies on other DLLs, because IdOpenSSLSetLibPath() does not influence where Windows looks for those other DLLs.

Reply


Messages In This Thread
Error: Could not load SSL library - by RaelB - 05-09-2018, 08:49 AM
RE: Error: Could not load SSL library - by RaelB - 05-09-2018, 02:10 PM
RE: Error: Could not load SSL library - by RaelB - 05-09-2018, 03:19 PM
RE: Error: Could not load SSL library - by rlebeau - 05-09-2018, 06:19 PM
RE: Error: Could not load SSL library - by RaelB - 05-09-2018, 06:36 PM
RE: Error: Could not load SSL library - by RaelB - 05-12-2018, 06:44 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)