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.

Author christian.heimes
Recipients christian.heimes, njs, steve.dower
Date 2021-04-21.17:41:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619026862.11.0.239955087868.issue43902@roundup.psfhosted.org>
In-reply-to
Content
I don't want to import ctypes from the ssl module code.

PyCapsule could be a solution for the problem. Users would have to call PyCapsule_Import("_ssl.capsule") and PyCapsule_GetPointer() to access a struct with additional methods. It's a bit more work to implement and slightly harder to use, but safer than exposing raw memory addresses.
History
Date User Action Args
2021-04-21 17:41:02christian.heimessetrecipients: + christian.heimes, njs, steve.dower
2021-04-21 17:41:02christian.heimessetmessageid: <1619026862.11.0.239955087868.issue43902@roundup.psfhosted.org>
2021-04-21 17:41:02christian.heimeslinkissue43902 messages
2021-04-21 17:41:02christian.heimescreate