]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-95095: Use SSL_CTX_get_max_proto_version instead of SSL_CTX_ctrl (GH-95096)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 21 Jul 2022 19:10:53 +0000 (12:10 -0700)
committerGitHub <noreply@github.com>
Thu, 21 Jul 2022 19:10:53 +0000 (12:10 -0700)
commit8fd2d36c1c6da78b2402fcb8bcefdad8428c8bc3
treed85e993d4a4ada9a9c79b7c679a97c0ab6fd2848
parentb60c3d2f7efede5d80bde2aec0b558b12814a0b3
gh-95095: Use SSL_CTX_get_max_proto_version instead of SSL_CTX_ctrl (GH-95096)

The wrapper macros are more readable and match the form recommended in
the OpenSSL documentation. They also slightly less error-prone, as the
mapping of arguments to SSL_CTX_ctrl is not always clear. (Though in
this case it's straightforward.)
https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_get_max_proto_version.html
(cherry picked from commit 936f71e5d4f50f2238b0320d44f7fb5f88e39809)

Co-authored-by: David Benjamin <davidben@davidben.net>
Modules/_ssl.c