Esempio 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())
Esempio 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())
 def remove_session(self, session):
     return m2.ssl_ctx_remove_session(self.ctx, session._ptr())
Esempio n. 4
0
 def remove_session(self, session):
     return m2.ssl_ctx_remove_session(self.ctx, session._ptr())