Christian Heimes <li...@cheimes.de> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40671>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to