summaryrefslogtreecommitdiffstats
path: root/Lib/ssl.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-03-05 04:18:57 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-03-05 04:18:57 (GMT)
commit7bcf9a558817a4fce48b81cd9696aff9b961d978 (patch)
tree1f33fd607b9e6a0938dca4955c0c0924e5e9b086 /Lib/ssl.py
parentc3d9c5ca0a74f0eedc228640977d6be1c2ddc176 (diff)
downloadcpython-7bcf9a558817a4fce48b81cd9696aff9b961d978.zip
cpython-7bcf9a558817a4fce48b81cd9696aff9b961d978.tar.gz
cpython-7bcf9a558817a4fce48b81cd9696aff9b961d978.tar.bz2
use _import_symbols to import VERIFY_* constants
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r--Lib/ssl.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 72115e4..ec42e38 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -103,8 +103,6 @@ from _ssl import (
SSLSyscallError, SSLEOFError,
)
from _ssl import CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED
-from _ssl import (VERIFY_DEFAULT, VERIFY_CRL_CHECK_LEAF, VERIFY_CRL_CHECK_CHAIN,
- VERIFY_X509_STRICT)
from _ssl import txt2obj as _txt2obj, nid2obj as _nid2obj
from _ssl import RAND_status, RAND_add, RAND_bytes, RAND_pseudo_bytes
try:
@@ -122,6 +120,7 @@ _import_symbols('OP_')
_import_symbols('ALERT_DESCRIPTION_')
_import_symbols('SSL_ERROR_')
_import_symbols('PROTOCOL_')
+_import_symbols('VERIFY_')
from _ssl import HAS_SNI, HAS_ECDH, HAS_NPN