Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Lib/test/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
PROTOCOLS = sorted(ssl._PROTOCOL_NAMES)
HOST = support.HOST
IS_LIBRESSL = ssl.OPENSSL_VERSION.startswith('LibreSSL')
if IS_LIBRESSL:
LIBRESSL_VERSION = tuple(
int(s) for s in ssl.OPENSSL_VERSION.rsplit(' ')[-1].split('.')
)
else:
LIBRESSL_VERSION = ()
IS_OPENSSL_1_1 = not IS_LIBRESSL and ssl.OPENSSL_VERSION_INFO >= (1, 1, 0)


Expand Down Expand Up @@ -3392,6 +3398,8 @@ def test_selected_npn_protocol(self):
sni_name=hostname)
self.assertIs(stats['client_npn_protocol'], None)

@unittest.skipIf(IS_LIBRESSL and LIBRESSL_VERSION >= (2, 6, 1),
"LibreSSL 2.6.1+ has broken NPN support")
@unittest.skipUnless(ssl.HAS_NPN, "NPN support needed for this test")
def test_npn_protocols(self):
server_protocols = ['http/1.1', 'spdy/2']
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LibreSSL 2.6.1+ has broken NPN support, skip tests for now.
4 changes: 2 additions & 2 deletions Tools/ssl/multissltests.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

OPENSSL_RECENT_VERSIONS = [
"1.0.2",
"1.0.2m",
"1.0.2n",
"1.1.0g",
]

Expand All @@ -57,8 +57,8 @@
]

LIBRESSL_RECENT_VERSIONS = [
"2.5.3",
"2.5.5",
"2.6.4",
]

# store files in ../multissl
Expand Down