diff options
author | Christian Heimes <christian@python.org> | 2018-03-24 18:38:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-24 18:38:14 +0100 |
commit | f5befbb0d1526f18eb2b24eabb48c3b761c624a2 (patch) | |
tree | f222e19f2bd5c16fdb47eb14d5ba99923d902e2f /Lib/test/test_ssl.py | |
parent | 643a781188539de038745d23d0e8e5a03b781209 (diff) | |
download | cpython-git-f5befbb0d1526f18eb2b24eabb48c3b761c624a2.tar.gz |
[3.6] bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) (GH-6214)
LibreSSL 2.7 introduced OpenSSL 1.1.0 API. The ssl module now detects
LibreSSL 2.7 and only provides API shims for OpenSSL < 1.1.0 and
LibreSSL < 2.7.
Documentation updates and fixes for failing tests will be provided in
another patch set.
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 4ca0739c9d97ac7cd45499e0d31be68dc659d0e1)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r-- | Lib/test/test_ssl.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 8dd3b41450..9785a59a7e 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1687,6 +1687,7 @@ class SimpleBackgroundTests(unittest.TestCase): self.assertEqual(len(ctx.get_ca_certs()), 1) @needs_sni + @unittest.skipUnless(hasattr(ssl, "PROTOCOL_TLSv1_2"), "needs TLS 1.2") def test_context_setget(self): # Check that the context of a connected socket can be replaced. ctx1 = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) |