[][src]Function x509_parser::pem::parse_x509_pem

pub fn parse_x509_pem(i: &[u8]) -> IResult<&[u8], Pem, PEMError>

Read a PEM-encoded structure, and decode the base64 data

Return a structure describing the PEM object: the enclosing tag, and the data. Allocates a new buffer for the decoded data.

For X.509 (CERTIFICATE tag), the data is a certificate, encoded in DER. To parse the certificate content, use Pem::parse_x509 or parse_x509_certificate.