rocket::mtls::x509::der

Function der_read_element_content

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

Parse DER object content recursively

*Note: an error is raised if recursion depth exceeds MAX_RECURSION.