Home | History | Annotate | Download | only in Lib

Lines Matching refs:_ssl

1 # Wrapper module for _ssl, providing some additional facilities
98 import _ssl # if we can't import it, let the error propagate
100 from _ssl import OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_INFO, OPENSSL_VERSION
101 from _ssl import _SSLContext
102 from _ssl import (
106 from _ssl import CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED
107 from _ssl import txt2obj as _txt2obj, nid2obj as _nid2obj
108 from _ssl import RAND_status, RAND_add
110 from _ssl import RAND_egd
116 for n in dir(_ssl):
118 globals()[n] = getattr(_ssl, n)
126 from _ssl import HAS_SNI, HAS_ECDH, HAS_NPN, HAS_ALPN
128 from _ssl import _OPENSSL_API_VERSION
142 from _ssl import enum_certificates, enum_crls
150 if _ssl.HAS_TLS_UNIQUE:
299 parts = _ssl.get_default_verify_paths()
431 context.options |= getattr(_ssl, "OP_NO_COMPRESSION", 0)
440 context.options |= getattr(_ssl, "OP_CIPHER_SERVER_PREFERENCE", 0)
443 context.options |= getattr(_ssl, "OP_SINGLE_DH_USE", 0)
444 context.options |= getattr(_ssl, "OP_SINGLE_ECDH_USE", 0)
685 if not self._sslobj or not _ssl.HAS_NPN:
692 if not self._sslobj or not _ssl.HAS_ALPN: