]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112454: Disable TLS-PSK if OpenSSL was built without PSK support (#112491)
authorGrant Ramsay <grant.ramsay@hotmail.com>
Wed, 29 Nov 2023 00:15:39 +0000 (13:15 +1300)
committerGitHub <noreply@github.com>
Wed, 29 Nov 2023 00:15:39 +0000 (16:15 -0800)
commite413daf5f6b983bdb4e1965d76b5313cb93b266e
tree1a6e410e4c910cf75e2016a687668bc4da8843d4
parent48dfd74a9db9d4aa9c6f23b4a67b461e5d977173
gh-112454: Disable TLS-PSK if OpenSSL was built without PSK support (#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
Doc/library/ssl.rst
Lib/ssl.py
Lib/test/test_ssl.py
Modules/_ssl.c