Exemplo n.º 1
0
    def remove_session(self, session):
        # type: (Session) -> int
        """Remove the session from the context.

        @param session: the session to be removed.

        @return: 0 The operation failed. The session was not found in
                   the cache.
                 1 The operation succeeded.
        """
        return m2.ssl_ctx_remove_session(self.ctx, session._ptr())
Exemplo n.º 2
0
    def remove_session(self, session):
        # type: (Session) -> int
        """Remove the session from the context.

        @param session: the session to be removed.

        @return: 0 The operation failed. The session was not found in
                   the cache.
                 1 The operation succeeded.
        """
        return m2.ssl_ctx_remove_session(self.ctx, session._ptr())
Exemplo n.º 3
0
 def remove_session(self, session):
     return m2.ssl_ctx_remove_session(self.ctx, session._ptr())
Exemplo n.º 4
0
 def remove_session(self, session):
     return m2.ssl_ctx_remove_session(self.ctx, session._ptr())