'Set the session to be used when the TLS/SSL connection is established.
:param session: A Session instance representing the session to use.
:returns: None'

def set_session(self, session):

    if (not isinstance(session, Session)):
        raise TypeError('session    must    be    a    Session    instance')
    result = _lib.SSL_set_session(self._ssl, session._session)
    if (not result):
        _raise_current_error()
