webpki::verify_cert

Struct ChainOptions

Source
pub(crate) struct ChainOptions<'a, 'p> {
    pub(crate) eku: KeyUsage,
    pub(crate) supported_sig_algs: &'a [&'a dyn SignatureVerificationAlgorithm],
    pub(crate) trust_anchors: &'p [TrustAnchor<'p>],
    pub(crate) intermediate_certs: &'p [CertificateDer<'p>],
    pub(crate) revocation: Option<RevocationOptions<'a>>,
}

Fields§

§eku: KeyUsage§supported_sig_algs: &'a [&'a dyn SignatureVerificationAlgorithm]§trust_anchors: &'p [TrustAnchor<'p>]§intermediate_certs: &'p [CertificateDer<'p>]§revocation: Option<RevocationOptions<'a>>

Implementations§

Source§

impl<'a, 'p: 'a> ChainOptions<'a, 'p>

Source

pub(crate) fn build_chain( &self, end_entity: &'p EndEntityCert<'p>, time: UnixTime, verify_path: Option<&dyn Fn(&VerifiedPath<'_>) -> Result<(), Error>>, ) -> Result<VerifiedPath<'p>, Error>

Source

fn build_chain_inner( &self, path: &mut PartialPath<'p>, time: UnixTime, verify_path: Option<&dyn Fn(&VerifiedPath<'_>) -> Result<(), Error>>, sub_ca_count: usize, budget: &mut Budget, ) -> Result<&'p TrustAnchor<'p>, ControlFlow<Error, Error>>

Source

fn check_signed_chain( &self, path: &PathNode<'_>, time: UnixTime, trust_anchor: &TrustAnchor<'_>, budget: &mut Budget, ) -> Result<(), ControlFlow<Error, Error>>

Auto Trait Implementations§

§

impl<'a, 'p> Freeze for ChainOptions<'a, 'p>

§

impl<'a, 'p> !RefUnwindSafe for ChainOptions<'a, 'p>

§

impl<'a, 'p> Send for ChainOptions<'a, 'p>

§

impl<'a, 'p> Sync for ChainOptions<'a, 'p>

§

impl<'a, 'p> Unpin for ChainOptions<'a, 'p>

§

impl<'a, 'p> !UnwindSafe for ChainOptions<'a, 'p>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.