Skip to content

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

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Apr 8, 2023

@corona10
Copy link
Member Author

corona10 commented Apr 8, 2023

(.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

@gpshead gpshead self-assigned this Apr 8, 2023
Copy link
Member

@gpshead gpshead left a 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.

@gpshead gpshead added the needs backport to 3.11 only security fixes label Apr 8, 2023
@gpshead gpshead merged commit 3516704 into python:main Apr 8, 2023
@miss-islington
Copy link
Contributor

Thanks @corona10 for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-103382 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 8, 2023
…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>
@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Apr 8, 2023
miss-islington added a commit that referenced this pull request Apr 8, 2023
…Is (GH-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>
warsaw pushed a commit to warsaw/cpython that referenced this pull request Apr 11, 2023
…ted APIs (python#103378)

Migrate `SSLContext.set_ecdh_curve()` not to use deprecated OpenSSL APIs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants