Lines Matching defs:protocol
50 The following constants identify various SSL protocol variants:
229 """Message types (handshake protocol)
492 def __new__(cls, protocol=None, *args, **kwargs):
493 if protocol is None:
495 "ssl.SSLContext() without protocol argument is deprecated.",
499 protocol = PROTOCOL_TLS
500 self = _SSLContext.__new__(cls, protocol)
544 for protocol in npn_protocols:
545 b = bytes(protocol, 'ascii')
568 for protocol in alpn_protocols:
569 b = bytes(protocol, 'ascii')
648 connections. The callback is called for any TLS protocol message
721 def protocol(self):
722 return _SSLMethod(super().protocol)
749 NOTE: The protocol and settings may change anytime without prior
783 def _create_unverified_context(protocol=None, *, cert_reqs=CERT_NONE,
802 if protocol is None:
803 protocol = PROTOCOL_TLS_CLIENT
805 if protocol is None:
806 protocol = PROTOCOL_TLS_SERVER
810 context = SSLContext(protocol)
942 """Return the currently selected NPN protocol as a string, or ``None``
943 if a next protocol was not negotiated or if NPN is not supported by one
952 """Return the currently selected ALPN protocol as a string, or ``None``
953 if a next protocol was not negotiated or if ALPN is not supported by one
992 """Return a string identifying the protocol version used by the