def wrap_socket(sock, keyfile=None, certfile=None, server_side=False, cert_reqs=CERT_NONE, ssl_version=PROTOCOL_SSLv23, ca_certs=None, do_handshake_on_connect=True, suppress_ragged_eofs=True, ciphers=None):
 return SSLSocket(sock, keyfile=keyfile, certfile=certfile, server_side=server_side, cert_reqs=cert_reqs, ssl_version=ssl_version, ca_certs=ca_certs, do_handshake_on_connect=do_handshake_on_connect, suppress_ragged_eofs=suppress_ragged_eofs, ciphers=ciphers)

def wrap_socket ( sock , keyfile = None , certfile = None , server_side = False , cert_reqs = CERT_NONE , ssl_version = PROTOCOL_SSLv23 , ca_certs = None , do_handshake_on_connect = True , suppress_ragged_eofs = True , ciphers = None ) : return SSLSocket ( sock , keyfile = keyfile , certfile = certfile , server_side = server_side , cert_reqs = cert_reqs , ssl_version = ssl_version , ca_certs = ca_certs , do_handshake_on_connect = do_handshake_on_connect , suppress_ragged_eofs = suppress_ragged_eofs , ciphers = ciphers )
create a new :class:sslobject instance .