From b9ac25d1c394714f0565845b274e7eebb402f1e7 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Fri, 8 Jul 2011 18:47:06 +0200 Subject: Issue #12440: When testing whether some bits in SSLContext.options can be reset, check the version of the OpenSSL headers Python was compiled against, rather than the runtime version of the OpenSSL library. --- Lib/ssl.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Lib/ssl.py') diff --git a/Lib/ssl.py b/Lib/ssl.py index e9e9aa8db04..ce9ebdf30ae 100644 --- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -77,6 +77,8 @@ from _ssl import ( ) from _ssl import HAS_SNI from _ssl import PROTOCOL_SSLv3, PROTOCOL_SSLv23, PROTOCOL_TLSv1 +from _ssl import _OPENSSL_API_VERSION + _PROTOCOL_NAMES = { PROTOCOL_TLSv1: "TLSv1", PROTOCOL_SSLv23: "SSLv23", -- cgit v1.2.3