Exemplo n.º 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()
Exemplo n.º 2
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()