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

Steve Dower report at bugs.python.org
Wed Apr 21 13:09:35 EDT 2021


Steve Dower <steve.dower at python.org> added the comment:

Could we have the address exposed in a way that can only be passed back into ctypes? Or alternatively, doesn't function if ctypes is missing?

I don't like offering ways to get real memory addresses, especially for interesting objects. At the same time, I see the value of it being available raw for CFFI and other tools that can use it.

Maybe it would be better to expose it as ctx._call_with_ctypes("SSL_CTX_set_ciphersuites", b"TLS_CHACHA20_POLY1305_SHA256")? That also leaves the opportunity to special-case certain functions in the future.

----------

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


More information about the Python-bugs-list mailing list