[Python-checkins] cpython: In search of TLS 1.1 bug: add debugging output in verbose mode

antoine.pitrou python-checkins at python.org
Fri Mar 29 18:13:36 CET 2013


http://hg.python.org/cpython/rev/e8a6c656b129
changeset:   83001:e8a6c656b129
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Fri Mar 29 18:09:06 2013 +0100
summary:
  In search of TLS 1.1 bug: add debugging output in verbose mode

files:
  Lib/test/test_ssl.py |  5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -2188,6 +2188,11 @@
             (ssl.OPENSSL_VERSION, ssl.OPENSSL_VERSION_INFO))
         print("          under %s" % plat)
         print("          HAS_SNI = %r" % ssl.HAS_SNI)
+        print("          OP_ALL = 0x%8x" % ssl.OP_ALL)
+        try:
+            print("          OP_NO_TLSv1_1 = 0x%8x" % ssl.OP_NO_TLSv1_1)
+        except AttributeError:
+            pass
 
     for filename in [
         CERTFILE, SVN_PYTHON_ORG_ROOT_CERT, BYTES_CERTFILE,

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list