Struct rustls::client::CertificateTransparencyPolicy
source · [−]pub struct CertificateTransparencyPolicy { /* private fields */ }
Expand description
Policy for enforcing Certificate Transparency.
Because Certificate Transparency logs are sharded on a per-year basis and can be trusted or distrusted relatively quickly, rustls stores a validation deadline. Server certificates will be validated against the configured CT logs until the deadline expires. After the deadline, certificates will no longer be validated, and a warning message will be logged. The deadline may vary depending on how often you deploy builds with updated dependencies.
Implementations
sourceimpl CertificateTransparencyPolicy
impl CertificateTransparencyPolicy
sourcepub fn new(
logs: &'static [&'static Log<'static>],
validation_deadline: SystemTime
) -> Self
pub fn new(
logs: &'static [&'static Log<'static>],
validation_deadline: SystemTime
) -> Self
Create a new policy.
Auto Trait Implementations
impl RefUnwindSafe for CertificateTransparencyPolicy
impl Send for CertificateTransparencyPolicy
impl Sync for CertificateTransparencyPolicy
impl Unpin for CertificateTransparencyPolicy
impl UnwindSafe for CertificateTransparencyPolicy
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