[issue43902] ssl module: add getter for SSL_CTX* and SSL*

Christian Heimes report at bugs.python.org
Wed Apr 21 13:53:23 EDT 2021


Christian Heimes <lists at cheimes.de> added the comment:

Funny, I was looking into the same issue with CDLL(). :)

The trick with ssl._ssl.__file__ may even break if users change sys.setdlopenflag() from RTLD_GLOBAL to RTLD_LOCAL. Static linking will also influence which symbols are available.

Python/dynload_shlib.c keeps a list of dlopen handles around, but there is no way to access the list of handles. Mmh ... tricky.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43902>
_______________________________________


More information about the Python-bugs-list mailing list