Struct webpki::TrustAnchor
source · [−]pub struct TrustAnchor<'a> {
pub subject: &'a [u8],
pub spki: &'a [u8],
pub name_constraints: Option<&'a [u8]>,
}
Expand description
A trust anchor (a.k.a. root CA).
Traditionally, certificate verification libraries have represented trust
anchors as full X.509 root certificates. However, those certificates
contain a lot more data than is needed for verifying certificates. The
TrustAnchor
representation allows an application to store just the
essential elements of trust anchors. The webpki::trust_anchor_util
module
provides functions for converting X.509 certificates to to the minimized
TrustAnchor
representation, either at runtime or in a build script.
Fields
subject: &'a [u8]
The value of the subject
field of the trust anchor.
spki: &'a [u8]
The value of the subjectPublicKeyInfo
field of the trust anchor.
name_constraints: Option<&'a [u8]>
The value of a DER-encoded NameConstraints, containing name constraints to apply to the trust anchor, if any.
Implementations
sourceimpl<'a> TrustAnchor<'a>
impl<'a> TrustAnchor<'a>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for TrustAnchor<'a>
impl<'a> Send for TrustAnchor<'a>
impl<'a> Sync for TrustAnchor<'a>
impl<'a> Unpin for TrustAnchor<'a>
impl<'a> UnwindSafe for TrustAnchor<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more