Function rocket::mtls::x509::ber::parse_ber_sequence

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

Parse a sequence of BER elements

Read a sequence of BER 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_ber_sequence_defined macro.