Menu

#70 Trying to load an SSL implementation on macOS results in "loading libcrypto in an unsafe way" error

SVN
closed-fixed
nobody
None
5
2023-03-22
2023-03-08
lighterowl
No

MacOS Big Sur.
Trying to run an application using Synapse with SSL results in the following message :

WARNING: myapp is loading libcrypto in an unsafe way

the application is then killed by the operating system.

This is because OpenSSL versions are not binary compatible and referring to the library by just "libssl.dylib" might result in loading a version with an incompatible ABI.

The fix is to change "libssl.dylib" and "libcrypto.dylib" in ssl_openssl3_lib.pas to "libssl.3.dylib" and "libcrypto.3.dylib" respectively. I haven't checked OpenSSL 1.1 but would expect the same error to happen when trying to load it.

Discussion

  • Geby

    Geby - 2023-03-22
    • status: open --> closed-fixed
     
  • Geby

    Geby - 2023-03-22

    Fixed, thank you!

     

Log in to post a comment.

MongoDB Logo MongoDB