[−][src]Function x509_parser::parse_ext_basicconstraints
pub fn parse_ext_basicconstraints(
i: &[u8]
) -> IResult<&[u8], BasicConstraints, BerError>
Parse a "Basic Constraints" extension
id-ce-basicConstraints OBJECT IDENTIFIER ::= { id-ce 19 } BasicConstraints ::= SEQUENCE { cA BOOLEAN DEFAULT FALSE, pathLenConstraint INTEGER (0..MAX) OPTIONAL }
Note the maximum length of the pathLenConstraint
field is limited to the size of a 32-bits
unsigned integer, and parsing will fail if value if larger.