-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-63284: Add support for TLS-PSK (pre-shared key) to the ssl module #103181
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
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
9d0f6dc
gh-63284: Add support for TLS-PSK (pre-shared key) to the ssl module
grantramsay cfddf7b
Fix TLS-PSK for TLS 1.3
grantramsay 603eeef
Merge branch 'main' into fix-issue-63284
arhadthedev 18302e3
Decode TLS-PSK identities as UTF-8 rather than ASCII
grantramsay 2efc876
Change TLS-PSK version added from 3.12 to 3.13
grantramsay a56784c
ReSTify NEWS.
gpshead 7a1963d
Merge branch 'main' into fix-issue-63284
gpshead 6f4100c
Set python exceptions raised during C callbacks as unraisable
grantramsay e4a97ec
Add NULL check for defensive coding
grantramsay 3d75982
Get single value using PyBytes_AsStringAndSize
grantramsay 539ed1f
Do not raise a decode exception if remote side sends invalid UTF-8 du…
grantramsay 4634fc3
Free TLS-PSK callbacks when SSL context is deallocated
grantramsay d21c322
Use Py_XINCREF and Py_XDECREF for tidier NULL checking
grantramsay 03fac4d
Check return value of SSL_CTX_use_psk_identity_hint
grantramsay 3db3921
Update TLS-PSK documentation
grantramsay a75f3a7
Regenerate news entry to update the timestamp
grantramsay 851a1e5
Merge branch 'main' into fix-issue-63284
gpshead 4c68974
Update example key strings in the doc.
gpshead 0fb8a3e
Update TLS-PSK documentation
grantramsay 7788589
Regenerate news entry to update the timestamp
grantramsay 11735b9
Code defensively around `z#` vs NULL and 0 length.
gpshead ad8b249
Merge branch 'fix-issue-63284' of https://github.com/grantramsay/cpyt…
gpshead File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Library/2023-11-27-12-41-23.gh-issue-63284.q2Qi9q.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added support for TLS-PSK (pre-shared key) mode to the :mod:`ssl` module. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.