Author christian.heimes
Recipients christian.heimes, corona10, petr.viktorin, shihai1991, vstinner
Date 2020-05-18.13:25:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
OpenSSL's EVP and HMAC API depend on global state in OpenSSL, but they are still safe to be used in subinterpreters. OpenSSL ensures that the internal data structures are initialized in a thread-safe manner. The internal state cannot leak across subinterpreters. OpenSSL has process global configuration, but Python's ssl and hashlib module do not expose these features.

The Python wrappers EVPobject, EVPXOFobject and HMACobject are **not** safe to be transfered across subinterpreters. The lock shouldn't matter here. It's used to release the GIL and block other threads from feeding into an object at the same time.
Date User Action Args
2020-05-18 13:25:23christian.heimessetrecipients: + christian.heimes, vstinner, petr.viktorin, corona10, shihai1991
2020-05-18 13:25:23christian.heimessetmessageid: <>
2020-05-18 13:25:23christian.heimeslinkissue40671 messages
2020-05-18 13:25:23christian.heimescreate