components/python/python27/patches/26-sslv2.patch
author John Beck <John.Beck@Oracle.COM>
Thu, 21 Jul 2016 12:51:35 -0700
changeset 6445 0edecb568b2e
parent 4733 87d0de8972c0
child 7516 09c933391a1b
permissions -rw-r--r--
23858073 Upgrade Python 2.7 line to 2.7.12

This patch comes from in-house, to deal with SSLv2 no longer being supported.
As it is Solaris-specific, it will not be passed upstream.

--- Python-2.7.10/Lib/test/test_ssl.py.orig	2015-07-24 14:34:42.067600359 -0700
+++ Python-2.7.10/Lib/test/test_ssl.py	2015-08-03 11:48:02.934532909 -0700
@@ -25,6 +25,9 @@
 ssl = support.import_module("ssl")
 
 PROTOCOLS = sorted(ssl._PROTOCOL_NAMES)
+if hasattr(ssl, 'PROTOCOL_SSLv2'):
+    delattr(ssl, 'PROTOCOL_SSLv2')
+    PROTOCOLS.remove(0)
 HOST = support.HOST
 
 def data_file(*name):