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

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