This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: find_library for libcrypto and libssl on Catalina returns the unversioned library
Type: behavior Stage:
Components: ctypes Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ned.deily, worldwise001
Priority: normal Keywords:

Created on 2019-11-21 02:37 by worldwise001, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg357125 - (view) Author: Sarah Harvey (worldwise001) Date: 2019-11-21 02:37
I've been tracking this through a bunch of different projects now. With the release of Mac OS X Catalina, libcrypto.dylib is a dummy library that causes an automatic segfault, to prevent upstream software from relying on it.

However a large amount of software makes use of ctypes find_library() which will return the path to the unversioned library.

It would be nice if we could specify "find the latest version" or similar so that we don't have to manually munge in a version, especially for strongly cross-platform libraries such as oscrypto.

I've filed a similar bug here https://github.com/wbond/oscrypto/issues/35 where it's very clear how it manifests itself.
msg357144 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2019-11-21 08:56
How would having a "find the latest version" help here?  The point is Apple does not want you to use *any* version of libcrypto in /usr/lib: they are there only for old versions of third-party apps that were linked to a specific then-current version of the system libcrypto with a specific ABI.  For libssl and libcrypto, Apple has been saying for many releases you need to supply your own versions; they haven't been supplying the header files for them in the SDKs for several releases and now this.  If an app *is* trying to use an old version (which it shouldn't!), it does need to munge a specific version.
History
Date User Action Args
2022-04-11 14:59:23adminsetgithub: 83054
2019-11-21 08:56:36ned.deilysetnosy: + ned.deily
messages: + msg357144
2019-11-21 02:37:22worldwise001create