Skip to content

der: add RELATIVE-OID tag support #1875

Open
@lukevalenta

Description

@lukevalenta

Support for parsing RELATIVE-OID tag (0x0d) is missing. For example, the following test results in 'Result::unwrap() on an Err value: "unknown/unsupported ASN.1 DER tag: 0x0d"`'.

#[cfg(test)]
mod tests {
    use std::str::FromStr;

    use x509_verify::x509_cert::name::RdnSequence;

    #[test]
    fn test_relative_oid() {
        let rdn = "1.3.6.1.4.1.44363.47.1=#0d03e81701";
        RdnSequence::from_str(rdn).map_err(|e| e.to_string()).unwrap();
    }
}

The error message comes from

fn decode<R: Reader<'a>>(reader: &mut R) -> Result<Self> {
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions