CERTSignedCrl* GetBestCRL(CRLDPCache* cache)
static CERTSignedCrl* GetBestCRL(CRLDPCache* cache, PRBool entries)
CERTSignedCrl* GetBestCRL(CRLDPCache* cache){    PRUint32 i = 0;    PR_ASSERT(cache);    if (!cache) {        return NULL;    }    if (0 == cache->ncrls) {        /* no CRLs in the cache */        return NULL;    }    /* first, check if we have a valid full CRL, and use that */    if (cache->full) {        return SEC_DupCrl(cache->full);    }    /* otherwise, check all the fetched CRLs for one with valid DER */    for (i = 0; i < cache->ncrls ; i++) {        CERTSignedCrl* acrl = cache->crls[i];        if (PR_FALSE == GetOpaqueCRLFields(acrl)->bad) {            SECStatus rv = CERT_CompleteCRLDecodeEntries(acrl);            if (SECSuccess == rv) {                return SEC_DupCrl(acrl);            }        }    }    return NULL;}