예제 #1
0
    def pop(self):
        """
        pop a certificate from the stack.

        @return: X509 object that was popped, or None if there is nothing
        to pop.
        """
        x509_ptr = m2.sk_x509_pop(self.stack)
        if x509_ptr is None:
            assert len(self.pystack) == 0
            return None
        return self.pystack.pop()
예제 #2
0
파일: X509.py 프로젝트: rodrigc/m2crypto
    def pop(self):
        """
        pop a certificate from the stack.

        @return: X509 object that was popped, or None if there is nothing
        to pop.
        """
        x509_ptr = m2.sk_x509_pop(self.stack)
        if x509_ptr is None:
            assert len(self.pystack) == 0
            return None
        return self.pystack.pop()