Function webpki::trust_anchor_util::cert_der_as_trust_anchor [−][src]
pub fn cert_der_as_trust_anchor(
cert_der: &[u8]
) -> Result<TrustAnchor<'_>, Error>
Interprets the given DER-encoded certificate as a TrustAnchor
. The
certificate is not validated. In particular, there is no check that the
certificate is self-signed or even that the certificate has the cA basic
constraint.