def read_crl(crl):
 text = _text_or_file(crl)
 text = get_pem_entry(text, pem_type='X509 CRL')
 crltempfile = tempfile.NamedTemporaryFile()
 crltempfile.write(text)
 crltempfile.flush()
 crlparsed = _parse_openssl_crl(crltempfile.name)
 crltempfile.close()
 return crlparsed

def read_crl ( crl ) : text = _text_or_file ( crl ) text = get_pem_entry ( text , pem_type = 'X509 CRL' ) crltempfile = tempfile . NamedTemporaryFile ( ) crltempfile . write ( text ) crltempfile . flush ( ) crlparsed = _parse_openssl_crl ( crltempfile . name ) crltempfile . close ( ) return crlparsed
returns a dict containing details of a certificate revocation list .