Skip to content

[3.13] gh-141801: Use accessors for ASN1_STRING fields in libssl (GH-141802) - #141848

Merged
gpshead merged 1 commit into
python:3.13from
miss-islington:backport-c41fce0-3.13
Nov 22, 2025
Merged

gpshead merged 1 commit into
python:3.13from
miss-islington:backport-c41fce0-3.13

Conversation

@miss-islington

Copy link
Copy Markdown
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants