rocket::mtls::x509

Function oid2abbrev

Source
pub fn oid2abbrev<'a>(
    oid: &'a Oid<'_>,
    registry: &'a OidRegistry<'_>,
) -> Result<&'a str, NidError>
Available on crate feature mtls only.
Expand description

Return the abbreviation (for ex. CN for Common Name), or if not found, the OID short name