Function parse
pub fn parse<'a>(
certificate: &'a CertificateDer<'a>,
) -> Result<P2pCertificate<'a>, ParseError>
Available on crate feature
tls
only.Expand description
Attempts to parse the provided bytes as a P2pCertificate
.
For this to succeed, the certificate must contain the specified extension and the signature must match the embedded public key.