Lazarus 4.2 and FPC 3.2.2 on macOS Sequoia (M4 cpu).
When I use TFPHttpClient.Get with "
https://test.de", it throws a
EInOutError exception and says "
Could not initialize OpenSSL library".
I am running the app in an app bundle with libssl + libcrypto 1.1 in the Frameworks directory:
Contents
MacOS
executable
Frameworks
libssl.1.1.dylib
libcrypto.1.1.dylib
...
I tested and tried this in my own code, which succeeds! (<> NilHandle):
LoadLibrary(ExtractFilePath(Application.ExeName) + '../Frameworks/libssl.1.1.dylib')
On Windows, with the v1.1 dlls in the executable directory, I get no error.
I assume that
openssl.LoadLibHack() on macOS does not load the libraries from the Framworks directory?
Do I need to give the openssl unit (or opensslsockets) a hint to the Frameworks directory somehow?