rocket::mtls::x509::der_parser::der

Function parse_der_sequence

Source
pub fn parse_der_sequence(
    i: &[u8],
) -> Result<(&[u8], BerObject<'_>), Err<Error>>
Available on crate feature mtls only.
Expand description

Parse a sequence of DER elements

Read a sequence of DER objects, without any constraint on the types. Sequence is parsed recursively, so if constructed elements are found, they are parsed using the same function.

To read a specific sequence of objects (giving the expected types), use the parse_der_sequence_defined macro.