SECStatus DPCache_Lookup(CRLDPCache* cache, SECItem* sn, CERTCrlEntry** returned)
static SECStatus DPCache_Lookup(CRLDPCache* cache, SECItem* sn, CERTCrlEntry** returned)
SECStatus DPCache_Lookup(CRLDPCache* cache, SECItem* sn, CERTCrlEntry** returned){    CERTSignedCrl* crl = NULL;    CERTCrlEntry* acrlEntry = NULL;    if (!cache || !sn) {        /* no cache or SN to look up, this is bad */        PORT_SetError(SEC_ERROR_INVALID_ARGS);        return SECFailure;    }    if (0 != cache->invalid) {        /* the cache contains a bad CRL, consider all certs revoked           as a security measure */        PORT_SetError(SEC_ERROR_CRL_INVALID);        return SECFailure;    }    if (!cache->full) {        /* no CRL means no entry to return, but this is OK */        *returned = NULL;        return SECSuccess;    }    crl = cache->full;    PR_ASSERT(cache->entries);    if (!cache->entries)    {        return SECFailure;    }    acrlEntry = PL_HashTableLookup(cache->entries, (void*)sn);    if (acrlEntry)    {        *returned = acrlEntry;    }    return SECSuccess;}