-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-103242: Migrate SSLContext.set_ecdh_curve not to use deprecated APIs #103378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
corona10
commented
Apr 8, 2023
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: Can't build '_ssl' extension with Python 3.11.2 and OpenSSL 3.1 #103242
(.oss) corona10@CPython-devel:~/cpython$ ./python -m test test_ssl -R 3:3
0:00:00 load avg: 0.04 Run tests sequentially
0:00:00 load avg: 0.04 [1/1] test_ssl
beginning 6 repetitions
123456
......
test_ssl passed in 1 min 14 sec
== Tests result: SUCCESS ==
1 test OK.
Total duration: 1 min 14 sec
Tests result: SUCCESS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to do a pile of searching and reading of the OpenSSL docs to understand that this is the correct modern way to do this. Thanks for the cleanup. I think there are compiler defines that can be set to still use the old deprecated APIs, but we shouldn't. That might be a viable strategy for anyone attempting to build 3.10 or earlier against an openssl recent enough to hide them by default though.
GH-103382 is a backport of this pull request to the 3.11 branch. |
…ted APIs (pythonGH-103378) Migrate `SSLContext.set_ecdh_curve()` not to use deprecated OpenSSL APIs. (cherry picked from commit 3516704) Co-authored-by: Dong-hee Na <donghee.na@python.org>
…ted APIs (python#103378) Migrate `SSLContext.set_ecdh_curve()` not to use deprecated OpenSSL APIs.