diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-08 18:49:07 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-08 18:49:07 +0200 |
commit | 7128f95bd27b34c82299d8572d4172bf0c8a13a3 (patch) | |
tree | 5d73969ecb7d13388554dacfb7a298c3b5fa3a89 /Lib/ssl.py | |
parent | 4468e55d4bd2a9ac4c6aeaffeb99653b7737ebd6 (diff) | |
parent | b9ac25d1c394714f0565845b274e7eebb402f1e7 (diff) | |
download | cpython-git-7128f95bd27b34c82299d8572d4172bf0c8a13a3.tar.gz |
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.
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r-- | Lib/ssl.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py index 1a7f599ea8..cde99fc083 100644 --- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -78,6 +78,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", |