MacOS: OpenSSL goes for unversioned .dylib before versioned
Original Reporter info from Mantis: scribly
-
Reporter name: Eric Heijnen
Original Reporter info from Mantis: scribly
- Reporter name: Eric Heijnen
Description:
When trying to load the unversion libcrypto.dylib or libssl.dylib MacOS will terminate the application with the error :
"Invalid dylib load. Clients should not load the unversioned libssl dylib as it does not have a stable ABI."
Steps to reproduce:
use fphttpclient and get an https url , or just do a do a dlopen('libssl.dylib')
Additional information:
You can prevent the application termination by loading a version specific dylib, like "libssl.0.9.8.dylib"
This code before using the openssl library fixes it as well:
openssl.DLLVersions[1]:=openssl.DLLVersions[2];