Lines Matching defs:for

1 # Wrapper module for _ssl, providing some additional facilities
4 """This module provides some more Pythonic support for SSL.
12 SSLError -- exception raised for I/O errors
16 cert_time_to_seconds -- convert time string used for certificate
154 _PROTOCOL_NAMES = {value: name for name, value in _SSLMethod.__members__.items()}
164 import base64 # for DER-to-PEM translation
182 # * Prefer ECDHE over DHE for better performance
183 # * Prefer AEAD over CBC for better performance and security
186 # * Prefer any AES-GCM and ChaCha20 over any AES-CBC for better
190 # for security reasons
197 # Restricted and more secure ciphers for the server side
200 # * Prefer ECDHE over DHE for better performance
201 # * Prefer AEAD over CBC for better performance and security
203 # * Prefer any AES-GCM and ChaCha20 over any AES-CBC for better
207 # 3DES for security reasons
261 for frag in remainder:
271 RFC 6125 explicitly doesn't define an algorithm for this
282 rules are followed, but IP addresses are not accepted for *hostname*.
298 for key, value in san:
310 for sub in cert.get('subject', ()):
311 for key, value in sub:
411 for protocol in npn_protocols:
422 for protocol in alpn_protocols:
434 for cert, encoding, trust in enum_certificates(storename):
449 for storename in self._windows_cert_stores:
510 # root CA certificates for the given purpose. This may fail silently.
518 """Create a SSLContext object for Python stdlib modules
548 # root CA certificates for the given purpose. This may fail silently.
569 that want to implement asynchronous IO for SSL through memory buffers.
595 """The SSLSession for client socket."""
614 """The currently set server hostname (for SNI), or ``None`` if no
695 """Get channel binding data for current connection. Raise ValueError
730 raise ValueError("certfile must be specified for server-side "
807 raise ValueError("do_handshake_on_connect should not be specified for non-blocking sockets")
825 """The SSLSession for client socket."""
846 # raise an exception here if you wish to check for spurious closes
1113 """Get channel binding data for current connection. Raise ValueError