An interpreted, interactive, object-oriented programming language
CentOS Sources
2017-08-01 71084d584ff953f5463757ec6536406320560b4d
commit | author | age
f63228 1 diff -up Python-2.7.5/Lib/test/test_ssl.py.ssl2 Python-2.7.5/Lib/test/test_ssl.py
CS 2 --- Python-2.7.5/Lib/test/test_ssl.py.ssl2    2015-03-04 12:19:26.345387741 +0100
3 +++ Python-2.7.5/Lib/test/test_ssl.py    2015-03-04 12:32:43.485702679 +0100
4 @@ -689,7 +689,8 @@ class ContextTests(unittest.TestCase):
5      @skip_if_broken_ubuntu_ssl
6      def test_options(self):
7          ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
8 -        # OP_ALL | OP_NO_SSLv2 is the default value
9 +        self.assertEqual(ssl.OP_ALL, ctx.options)
10 +        ctx.options |= ssl.OP_NO_SSLv2
11          self.assertEqual(ssl.OP_ALL | ssl.OP_NO_SSLv2,
12                           ctx.options)
13          ctx.options |= ssl.OP_NO_SSLv3
14 @@ -2142,9 +2143,9 @@ else:
15                  # No SSLv2 => client will use an SSLv3 hello on recent OpenSSLs
16                  try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv23, False,
17                                     client_options=ssl.OP_NO_SSLv2)
18 -            try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv23, False,
19 +            try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv23, True,
20                                 client_options=ssl.OP_NO_SSLv3)
21 -            try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv23, False,
22 +            try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv23, True,
23                                 client_options=ssl.OP_NO_TLSv1)
24
25          @skip_if_broken_ubuntu_ssl
26