Function rocket::mtls::x509::der_parser::ber::parse_ber_any_with_tag_r

source ·
pub fn parse_ber_any_with_tag_r(
    i: &[u8],
    tag: Tag,
    max_depth: usize
) -> Result<(&[u8], BerObject<'_>), Err<Error>>
Available on crate feature mtls only.
Expand description

Parse any BER object recursively, specifying the maximum recursion depth and expected tag

Raise an error if the maximum recursion depth was reached.