예제 #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())
예제 #2
0
파일: Context.py 프로젝트: appknox/m2crypto
    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())
예제 #3
0
 def add_session(self, session):
     return m2.ssl_ctx_add_session(self.ctx, session._ptr())
예제 #4
0
파일: Context.py 프로젝트: rodrigc/m2crypto
 def add_session(self, session):
     return m2.ssl_ctx_add_session(self.ctx, session._ptr())