mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
gh-128035: Add ssl.HAS_PHA to detect libssl PHA support (GH-128036)
* Add ssl.HAS_PHA to detect libssl Post-Handshake-Auth support Co-authored-by: Tomas R. <tomas.roun8@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
parent
7985d460c7
commit
418114c139
7 changed files with 26 additions and 4 deletions
|
@ -4494,7 +4494,8 @@ class ThreadedTests(unittest.TestCase):
|
|||
s.connect((HOST, server.port))
|
||||
|
||||
|
||||
@unittest.skipUnless(has_tls_version('TLSv1_3'), "Test needs TLS 1.3")
|
||||
@unittest.skipUnless(has_tls_version('TLSv1_3') and ssl.HAS_PHA,
|
||||
"Test needs TLS 1.3 PHA")
|
||||
class TestPostHandshakeAuth(unittest.TestCase):
|
||||
def test_pha_setter(self):
|
||||
protocols = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue