mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-133623: Add ssl.HAS_PSK_TLS13
to detect external TLS 1.3 PSK support (#133624)
This commit is contained in:
parent
f77dac66e1
commit
6801bd32cb
6 changed files with 22 additions and 4 deletions
|
@ -4488,6 +4488,7 @@ class ThreadedTests(unittest.TestCase):
|
|||
|
||||
@requires_tls_version('TLSv1_3')
|
||||
@unittest.skipUnless(ssl.HAS_PSK, 'TLS-PSK disabled on this OpenSSL build')
|
||||
@unittest.skipUnless(ssl.HAS_PSK_TLS13, 'TLS 1.3 PSK disabled on this OpenSSL build')
|
||||
def test_psk_tls1_3(self):
|
||||
psk = bytes.fromhex('deadbeef')
|
||||
identity_hint = 'identity-hint'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue