src/OpenSSL/crypto.py
def get_revoked(self):
        """
        Return the revocations in this certificate revocation list.

        These revocations will be provided by value, not by reference.
        That means it's okay to mutate them: it won't affect this CRL.

        :return: The revocations in this CRL.
        :rtype: :class:`tuple` of :class:`Revocation`
        """
        results = []
        revoked_stack = _lib.X509_CRL_get_REVOKED(self._crl)
        for i in range(_lib.sk_X509_REVOKED_num(revoked_stack)):
            revoked = _lib.sk_X509_REVOKED_value(revoked_stack, i)
            revoked_copy = _lib.Cryptography_X509_REVOKED_dup(revoked)
            pyrev = Revoked.__new__(Revoked)
            pyrev._revoked = _ffi.gc(revoked_copy, _lib.X509_REVOKED_free)
            results.append(pyrev)
        if results:
            return tuple(results)
def get_revoked(self):
        results = []
        revoked_stack = _lib.X509_CRL_get_REVOKED(self._crl)
        for i in range(_lib.sk_X509_REVOKED_num(revoked_stack)):
            revoked = _lib.sk_X509_REVOKED_value(revoked_stack, i)
            revoked_copy = _lib.Cryptography_X509_REVOKED_dup(revoked)
            pyrev = Revoked.__new__(Revoked)
            pyrev._revoked = _ffi.gc(revoked_copy, _lib.X509_REVOKED_free)
            results.append(pyrev)
        if results:
            return tuple(results)
def get_revoked ( self ) : results = [ ] revoked_stack = _lib . X509_CRL_get_REVOKED ( self . _crl ) for i in range ( _lib . sk_X509_REVOKED_num ( revoked_stack ) ) : revoked = _lib . sk_X509_REVOKED_value ( revoked_stack , i ) revoked_copy = _lib . Cryptography_X509_REVOKED_dup ( revoked ) pyrev = Revoked . __new__ ( Revoked ) pyrev . _revoked = _ffi . gc ( revoked_copy , _lib . X509_REVOKED_free ) results . append ( pyrev ) if results : return tuple ( results )
Return the revocations in this certificate revocation list.

        These revocations will be provided by value, not by reference.
        That means it's okay to mutate them: it won't affect this CRL.

        :return: The revocations in this CRL.
        :rtype: :class:`tuple` of :class:`Revocation`
Return the revocations in this certificate revocation list .