From: Antoine Pitrou Date: Fri, 29 Mar 2013 17:09:06 +0000 (+0100) Subject: In search of TLS 1.1 bug: add debugging output in verbose mode X-Git-Tag: v3.4.0a1~1071 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=609ef01b022b7ee22703255058e6c95100cb0ca9;p=python In search of TLS 1.1 bug: add debugging output in verbose mode --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 431cd5a71c..408033e242 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -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,