pub struct ChromePolicy(/* private fields */);
Expand description
A model of Chromium’s X.509 validation policy around Aug, 2020.
Trait Implementations§
Source§impl Debug for ChromePolicy
impl Debug for ChromePolicy
Source§impl Default for ChromePolicy
impl Default for ChromePolicy
Source§impl Policy for ChromePolicy
impl Policy for ChromePolicy
Source§fn likely_issued(&self, issuer: &Certificate, subject: &Certificate) -> bool
fn likely_issued(&self, issuer: &Certificate, subject: &Certificate) -> bool
A policy-dependent predicate to check if
subject
is likely issued by issuer
prior to signature checking.Source§fn valid_chain(&self, chain: &Vec<&Certificate>, task: &Task) -> bool
fn valid_chain(&self, chain: &Vec<&Certificate>, task: &Task) -> bool
A policy-specific predicate to check if a certificate chain is
considered valid with the provided
Task
, provided that
for each i
, chain[i]
is issued by chain[i + 1]
,
and chain.last()
is a trusted root certificate.Auto Trait Implementations§
impl Freeze for ChromePolicy
impl RefUnwindSafe for ChromePolicy
impl Send for ChromePolicy
impl Sync for ChromePolicy
impl Unpin for ChromePolicy
impl UnwindSafe for ChromePolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, U> SpecTryInto<U> for Twhere
U: SpecTryFrom<T>,
impl<T, U> SpecTryInto<U> for Twhere
U: SpecTryFrom<T>,
Source§type Error = <U as SpecTryFrom<T>>::Error
type Error = <U as SpecTryFrom<T>>::Error
The type returned in the event of a conversion error.