Skip to content

Conversation

@miss-islington
Copy link
Contributor

While ASN1_STRING is currently exposed, it is better to use the
accessors. See openssl/openssl#29117 where, if
the type were opaque, OpenSSL's X509 objects could be much more
memory-efficient.

  • Update Modules/_ssl.c

Co-authored-by: Bénédikt Tran 10796600+picnixz@users.noreply.github.com

  • Update Modules/_ssl.c

Co-authored-by: Bénédikt Tran 10796600+picnixz@users.noreply.github.com


(cherry picked from commit c41fce0)

Co-authored-by: David Benjamin davidben@davidben.net
Co-authored-by: Bénédikt Tran 10796600+picnixz@users.noreply.github.com

…onGH-141802)

* pythongh-141801: Use accessors for ASN1_STRING fields

While ASN1_STRING is currently exposed, it is better to use the
accessors. See openssl/openssl#29117 where, if
the type were opaque, OpenSSL's X509 objects could be much more
memory-efficient.

* Update Modules/_ssl.c

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>

* Update Modules/_ssl.c

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>

---------
(cherry picked from commit c41fce0)

Co-authored-by: David Benjamin <davidben@davidben.net>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@gpshead gpshead merged commit 66e2b4a into python:3.13 Nov 22, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants