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§
source§impl 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.