示例#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()