diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-12-01 17:44:24 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-12-01 17:44:24 +0300 |
commit | c089c4500b0b78acf03ee5405ad250a84b0dfa66 (patch) | |
tree | 23870848d194569aff6e0e4e41bc7907960b1af1 /debian/patches/update-tls-protocol.diff | |
parent | 377002e7300431b68f3548d9fd2c7f99cf883939 (diff) | |
download | python3.7-debian.tar.gz |
Import python3.7 (3.7.5-2)debian/3.7.5-2debian
Diffstat (limited to 'debian/patches/update-tls-protocol.diff')
-rw-r--r-- | debian/patches/update-tls-protocol.diff | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/debian/patches/update-tls-protocol.diff b/debian/patches/update-tls-protocol.diff deleted file mode 100644 index 4548a4a..0000000 --- a/debian/patches/update-tls-protocol.diff +++ /dev/null @@ -1,79 +0,0 @@ -Index: b/Lib/test/test_ftplib.py -=================================================================== ---- a/Lib/test/test_ftplib.py -+++ b/Lib/test/test_ftplib.py -@@ -912,7 +912,7 @@ class TestTLS_FTPClass(TestCase): - - def test_context(self): - self.client.quit() -- ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1) -+ ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) - self.assertRaises(ValueError, ftplib.FTP_TLS, keyfile=CERTFILE, - context=ctx) - self.assertRaises(ValueError, ftplib.FTP_TLS, certfile=CERTFILE, -@@ -941,7 +941,7 @@ class TestTLS_FTPClass(TestCase): - - def test_check_hostname(self): - self.client.quit() -- ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1) -+ ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) - ctx.verify_mode = ssl.CERT_REQUIRED - ctx.check_hostname = True - ctx.load_verify_locations(CAFILE) -Index: b/Lib/test/test_httplib.py -=================================================================== ---- a/Lib/test/test_httplib.py -+++ b/Lib/test/test_httplib.py -@@ -1620,7 +1620,7 @@ class HTTPSTest(TestCase): - # The (valid) cert validates the HTTP hostname - import ssl - server = self.make_server(CERT_localhost) -- context = ssl.SSLContext(ssl.PROTOCOL_TLSv1) -+ context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) - context.verify_mode = ssl.CERT_REQUIRED - context.load_verify_locations(CERT_localhost) - h = client.HTTPSConnection('localhost', server.port, context=context) -@@ -1634,7 +1634,7 @@ class HTTPSTest(TestCase): - # The (valid) cert doesn't validate the HTTP hostname - import ssl - server = self.make_server(CERT_fakehostname) -- context = ssl.SSLContext(ssl.PROTOCOL_TLSv1) -+ context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) - context.verify_mode = ssl.CERT_REQUIRED - context.check_hostname = True - context.load_verify_locations(CERT_fakehostname) -Index: b/Lib/test/test_poplib.py -=================================================================== ---- a/Lib/test/test_poplib.py -+++ b/Lib/test/test_poplib.py -@@ -352,7 +352,7 @@ class TestPOP3Class(TestCase): - @requires_ssl - def test_stls_context(self): - expected = b'+OK Begin TLS negotiation' -- ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1) -+ ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) - ctx.load_verify_locations(CAFILE) - ctx.verify_mode = ssl.CERT_REQUIRED - ctx.check_hostname = True -@@ -392,7 +392,7 @@ class TestPOP3_SSLClass(TestPOP3Class): - self.assertIn('POP3_SSL', poplib.__all__) - - def test_context(self): -- ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1) -+ ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) - self.assertRaises(ValueError, poplib.POP3_SSL, self.server.host, - self.server.port, keyfile=CERTFILE, context=ctx) - self.assertRaises(ValueError, poplib.POP3_SSL, self.server.host, -Index: b/Lib/test/test_urllib2_localnet.py -=================================================================== ---- a/Lib/test/test_urllib2_localnet.py -+++ b/Lib/test/test_urllib2_localnet.py -@@ -598,7 +598,7 @@ class TestUrlopen(unittest.TestCase): - def cb_sni(ssl_sock, server_name, initial_context): - nonlocal sni_name - sni_name = server_name -- context = ssl.SSLContext(ssl.PROTOCOL_TLSv1) -+ context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) - context.set_servername_callback(cb_sni) - handler = self.start_https_server(context=context, certfile=CERT_localhost) - context = ssl.create_default_context(cafile=CERT_localhost) |