rocket::mtls::x509::ber

Function parse_ber_set

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

Parse a set of BER elements

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

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