mirror of
https://github.com/python/cpython.git
synced 2026-05-06 04:37:33 -04:00
gh-148600: Add OpenSSL 4.0.0 support to test configurations (#149356)
Co-authored-by: Charlie Lin <tuug@gmx.us>
This commit is contained in:
@@ -283,6 +283,7 @@ jobs:
|
||||
- { name: openssl, version: 3.4.5 }
|
||||
- { name: openssl, version: 3.5.6 }
|
||||
- { name: openssl, version: 3.6.2 }
|
||||
- { name: openssl, version: 4.0.0 }
|
||||
## AWS-LC
|
||||
- { name: aws-lc, version: 1.72.1 }
|
||||
env:
|
||||
|
||||
@@ -185,7 +185,8 @@ class DummyPOP3Handler(asynchat.async_chat):
|
||||
elif err.args[0] == ssl.SSL_ERROR_EOF:
|
||||
return self.handle_close()
|
||||
# TODO: SSLError does not expose alert information
|
||||
elif ("SSLV3_ALERT_BAD_CERTIFICATE" in err.args[1] or
|
||||
elif ("TLS_ALERT_BAD_CERTIFICATE" in err.args[1] or
|
||||
"SSLV3_ALERT_BAD_CERTIFICATE" in err.args[1] or
|
||||
"SSLV3_ALERT_CERTIFICATE_UNKNOWN" in err.args[1]):
|
||||
return self.handle_close()
|
||||
raise
|
||||
@@ -423,6 +424,7 @@ class TestPOP3Class(TestCase):
|
||||
self.assertEqual(ctx.check_hostname, True)
|
||||
with self.assertRaises(ssl.CertificateError):
|
||||
resp = self.client.stls(context=ctx)
|
||||
|
||||
self.client = poplib.POP3("localhost", self.server.port,
|
||||
timeout=test_support.LOOPBACK_TIMEOUT)
|
||||
resp = self.client.stls(context=ctx)
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Add OpenSSL 4.0.0 support to test configurations.
|
||||
@@ -54,6 +54,7 @@ OPENSSL_RECENT_VERSIONS = [
|
||||
"3.4.5",
|
||||
"3.5.6",
|
||||
"3.6.2",
|
||||
"4.0.0",
|
||||
# See make_ssl_data.py for notes on adding a new version.
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user