]> granicus.if.org Git - python/commitdiff
In search of TLS 1.1 bug: add debugging output in verbose mode
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 29 Mar 2013 17:09:06 +0000 (18:09 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 29 Mar 2013 17:09:06 +0000 (18:09 +0100)
Lib/test/test_ssl.py

index 431cd5a71c33ddf3d7d268fa885f269b030cc298..408033e2420ab5739b80925f1f3671809567e94d 100644 (file)
@@ -2188,6 +2188,11 @@ def test_main(verbose=False):
             (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,