webpki::crl::types

Struct IssuingDistributionPoint

Source
pub(crate) struct IssuingDistributionPoint<'a> {
    distribution_point: Option<Input<'a>>,
    pub(crate) only_contains_user_certs: bool,
    pub(crate) only_contains_ca_certs: bool,
    pub(crate) only_some_reasons: Option<BitStringFlags<'a>>,
    pub(crate) indirect_crl: bool,
    pub(crate) only_contains_attribute_certs: bool,
}

Fields§

§distribution_point: Option<Input<'a>>§only_contains_user_certs: bool§only_contains_ca_certs: bool§only_some_reasons: Option<BitStringFlags<'a>>§indirect_crl: bool§only_contains_attribute_certs: bool

Implementations§

Source§

impl<'a> IssuingDistributionPoint<'a>

Source

pub(crate) fn from_der(der: Input<'a>) -> Result<Self, Error>

Source

pub(crate) fn names(&self) -> Result<Option<DistributionPointName<'a>>, Error>

Return the distribution point names (if any).

Source

pub(crate) fn authoritative_for(&self, node: &PathNode<'a>) -> bool

Returns true if the CRL can be considered authoritative for the given certificate. We make this determination using the certificate and CRL issuers, and the distribution point names that may be present in extensions found on both.

We consider the CRL authoritative for the certificate if the CRL issuing distribution point has a scope that could include the cert and if the cert has CRL distribution points, that at least one CRL DP has a valid distribution point full name where one of the general names is a Uniform Resource Identifier (URI) general name that can also be found in the CRL issuing distribution point.

We do not consider:

  • Distribution point names relative to an issuer.
  • General names of a type other than URI.
  • Malformed names or invalid IDP or CRL DP extensions.
Source

fn uri_name_in_common( idp_general_names: &mut DerIterator<'a, GeneralName<'a>>, dp_general_names: &mut DerIterator<'a, GeneralName<'a>>, ) -> bool

Auto Trait Implementations§

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.