FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-112454: Disable TLS-PSK if OpenSSL was built without PSK support by grantramsay · Pull Request #112491 · python/cpython · GitHub

Repository navigation

gh-112454: Disable TLS-PSK if OpenSSL was built without PSK support - #112491

Merged
gpshead merged 1 commit into
python:mainfrom
grantramsay:fix-issue-112454
Nov 29, 2023
Merged

gpshead merged 1 commit into
python:mainfrom
grantramsay:fix-issue-112454

Conversation

grantramsay commented Nov 28, 2023 •
edited
Loading

Copy link
Copy Markdown
Contributor
  • If OpenSSL was built without PSK support, the python TLS-PSK methods will raise NotImplementedError if called
  • Add a constant ssl.HAS_PSK to check if TLS-PSK is supported

As a side note (a mistake I made when trying to test this), make sure to build OpenSSL with:

./Configure no-psk

and not:

./Configure -DOPENSSL_NO_PSK

otherwise OPENSSL_NO_PSK is not available in the OpenSSL public headers.

CC: @gpshead


📚 Documentation preview 📚: https://cpython-previews--112491.org.readthedocs.build/

…port

If OpenSSL was built without PSK support, the python TLS-PSK
methods will raise "NotImplementedError" if called.

Add a constant "ssl.HAS_PSK" to check if TLS-PSK is supported

Copy link
Copy Markdown
Contributor Author

@ayappanec can you check if this fixes your issue?

Copy link
Copy Markdown
Contributor

@ayappanec can you check if this fixes your issue?

Yes, it works with this fix.

gpshead commented Nov 29, 2023

Copy link
Copy Markdown
Member

Thanks for the pre-release testing ayappanec!

gpshead self-assigned this Nov 29, 2023
gpshead merged commit e413daf into python:main Nov 29, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…port (python#112491)

If OpenSSL was built without PSK support, the python TLS-PSK
methods will raise "NotImplementedError" if called.

Add a constant "ssl.HAS_PSK" to check if TLS-PSK is supported
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…port (python#112491)

If OpenSSL was built without PSK support, the python TLS-PSK
methods will raise "NotImplementedError" if called.

Add a constant "ssl.HAS_PSK" to check if TLS-PSK is supported
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL