]> granicus.if.org Git - python/commitdiff
use _import_symbols to import VERIFY_* constants
authorBenjamin Peterson <benjamin@python.org>
Thu, 5 Mar 2015 04:18:57 +0000 (23:18 -0500)
committerBenjamin Peterson <benjamin@python.org>
Thu, 5 Mar 2015 04:18:57 +0000 (23:18 -0500)
Lib/ssl.py

index 72115e4465bbbe928a3f0c8e4b7ba8464160d265..ec42e38d08638c106b5325f8cfecabb12184e5a7 100644 (file)
@@ -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