Beispiel #1
0
    def add_session(self, session):
        # type: (Session) -> int
        """Add the session to the context.

        @param session: the session to be added.

        @return: 0 The operation failed. It was tried to add the same
                   (identical) session twice.
                 1 The operation succeeded.
        """
        return m2.ssl_ctx_add_session(self.ctx, session._ptr())
Beispiel #2
0
    def add_session(self, session):
        # type: (Session) -> int
        """Add the session to the context.

        @param session: the session to be added.

        @return: 0 The operation failed. It was tried to add the same
                   (identical) session twice.
                 1 The operation succeeded.
        """
        return m2.ssl_ctx_add_session(self.ctx, session._ptr())
 def add_session(self, session):
     return m2.ssl_ctx_add_session(self.ctx, session._ptr())
Beispiel #4
0
 def add_session(self, session):
     return m2.ssl_ctx_add_session(self.ctx, session._ptr())