fn decode_item()

in cert-storage-inspector/src/main.rs [97:113]


fn decode_item(key: &[u8], value: &Option<Value>, revocations: &mut BTreeSet<Revocation>) {
    if has_prefix(key, PREFIX_REV_IS) {
        decode_revocation(
            &key[PREFIX_REV_IS.len()..],
            value,
            RevocationType::IssuerSerial,
            revocations,
        );
    } else if has_prefix(key, PREFIX_REV_SPK) {
        decode_revocation(
            &key[PREFIX_REV_SPK.len()..],
            value,
            RevocationType::SubjectPublicKey,
            revocations,
        );
    }
}