MCPcopy Index your code
hub / github.com/python/cpython / wrap_socket

Method wrap_socket

Lib/ssl.py:449–463  ·  view source on GitHub ↗
(self, sock, server_side=False,
                    do_handshake_on_connect=True,
                    suppress_ragged_eofs=True,
                    server_hostname=None, session=None)

Source from the content-addressed store, hash-verified

447 return hostname.decode('ascii')
448
449 def wrap_socket(self, sock, server_side=False,
450 do_handshake_on_connect=True,
451 suppress_ragged_eofs=True,
452 server_hostname=None, session=None):
453 # SSLSocket class handles server_hostname encoding before it calls
454 # ctx._wrap_socket()
455 return self.sslsocket_class._create(
456 sock=sock,
457 server_side=server_side,
458 do_handshake_on_connect=do_handshake_on_connect,
459 suppress_ragged_eofs=suppress_ragged_eofs,
460 server_hostname=server_hostname,
461 context=self,
462 session=session
463 )
464
465 def wrap_bio(self, incoming, outgoing, server_side=False,
466 server_hostname=None, session=None):

Callers 15

test_unsupported_dtlsMethod · 0.95
test_subclassMethod · 0.95
test_connect_capathMethod · 0.95
test_connect_cadataMethod · 0.95
test_context_setgetMethod · 0.95
test_ecc_certMethod · 0.95
test_dual_rsa_eccMethod · 0.95

Calls 1

_createMethod · 0.45

Tested by 15

test_unsupported_dtlsMethod · 0.76
test_subclassMethod · 0.76
test_connect_capathMethod · 0.76
test_connect_cadataMethod · 0.76
test_context_setgetMethod · 0.76
test_ecc_certMethod · 0.76
test_dual_rsa_eccMethod · 0.76