check_for_headers

Function check_for_headers 

Source
fn check_for_headers(pem: &[u8], err: Error) -> Error
Expand description

Check for PEM headers in the input, as they are disallowed by RFC7468.

Returns Error::HeaderDisallowed if headers are encountered.