]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-141801: Use accessors for ASN1_STRING fields in libssl (GH-141802) (#141848)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 22 Nov 2025 18:53:14 +0000 (19:53 +0100)
committerGitHub <noreply@github.com>
Sat, 22 Nov 2025 18:53:14 +0000 (10:53 -0800)
commit66e2b4ac546da911d2c14883a7a7aa987fac127e
tree57600eece3512f61ed025472eb5d019d03e2fdc3
parent616117b018529a9bdf9eb97712b24d5f7406864b
[3.13] gh-141801: Use accessors for ASN1_STRING fields in libssl (GH-141802) (#141848)

gh-141801: Use accessors for ASN1_STRING fields in libssl (GH-141802)

* gh-141801: Use accessors for ASN1_STRING fields

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

* Update Modules/_ssl.c

* Update Modules/_ssl.c

---------
(cherry picked from commit c41fce08a5d7aae8fd9e3fa25e0ba521600e097c)

Co-authored-by: David Benjamin <davidben@davidben.net>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Modules/_ssl.c