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:
Victor Stinner
2026-05-04 15:21:04 +02:00
committed by GitHub
parent 7aedd0a6c6
commit fc96028191
4 changed files with 6 additions and 1 deletions
+1
View File
@@ -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:
+3 -1
View File
@@ -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.
+1
View File
@@ -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.
]