def dump_crl(type, crl):
 bio = _new_mem_buf()
 if (type == FILETYPE_PEM):
  ret = _lib.PEM_write_bio_X509_CRL(bio, crl._crl)
 elif (type == FILETYPE_ASN1):
  ret = _lib.i2d_X509_CRL_bio(bio, crl._crl)
 elif (type == FILETYPE_TEXT):
  ret = _lib.X509_CRL_print(bio, crl._crl)
 else:
  raise ValueError('type argument must be FILETYPE_PEM, FILETYPE_ASN1, or FILETYPE_TEXT')
 assert (ret == 1)
 return _bio_to_string(bio)

def dump_crl ( type , crl ) : bio = _new_mem_buf ( ) if ( type == FILETYPE_PEM ) : ret = _lib . PEM_write_bio_X509_CRL ( bio , crl . _crl ) elif ( type == FILETYPE_ASN1 ) : ret = _lib . i2d_X509_CRL_bio ( bio , crl . _crl ) elif ( type == FILETYPE_TEXT ) : ret = _lib . X509_CRL_print ( bio , crl . _crl ) else : raise ValueError ( 'type argument must be FILETYPE_PEM, FILETYPE_ASN1, or FILETYPE_TEXT' ) assert ( ret == 1 ) return _bio_to_string ( bio )
dump a certificate revocation list to a buffer .