'Switch this connection to a new session context
:param context: A :py:class:`Context` instance giving the new session
context to use.'

def set_context(self, context):

    if (not isinstance(context, Context)):
        raise TypeError('context    must    be    a    Context    instance')
    _lib.SSL_set_SSL_CTX(self._ssl, context._context)
    self._context = context
