pub struct RevocationConfig {
pub timeout: Duration,
pub prefer_ocsp: bool,
pub use_stapling: bool,
pub strict_mode: bool,
pub max_crl_age: u64,
pub ocsp_responder: Option<String>,
}Available on crate features
signatures and ocsp only.Expand description
Configuration for revocation checking.
Fields§
§timeout: DurationTimeout for network requests.
prefer_ocsp: boolWhether to prefer OCSP over CRL.
use_stapling: boolWhether to use OCSP stapling when available.
strict_mode: boolWhether to require a valid revocation response. If false, unknown status is treated as valid.
max_crl_age: u64Maximum age of cached CRL responses in seconds.
ocsp_responder: Option<String>Custom OCSP responder URL (overrides AIA).
Implementations§
Source§impl RevocationConfig
impl RevocationConfig
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set the network timeout.
Sourcepub fn with_prefer_ocsp(self, prefer: bool) -> Self
pub fn with_prefer_ocsp(self, prefer: bool) -> Self
Set whether to prefer OCSP over CRL.
Sourcepub fn with_strict_mode(self, strict: bool) -> Self
pub fn with_strict_mode(self, strict: bool) -> Self
Set strict mode (require valid revocation response).
Sourcepub fn with_ocsp_responder(self, url: impl Into<String>) -> Self
pub fn with_ocsp_responder(self, url: impl Into<String>) -> Self
Set a custom OCSP responder URL.
Trait Implementations§
Source§impl Clone for RevocationConfig
impl Clone for RevocationConfig
Source§fn clone(&self) -> RevocationConfig
fn clone(&self) -> RevocationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RevocationConfig
impl Debug for RevocationConfig
Auto Trait Implementations§
impl Freeze for RevocationConfig
impl RefUnwindSafe for RevocationConfig
impl Send for RevocationConfig
impl Sync for RevocationConfig
impl Unpin for RevocationConfig
impl UnsafeUnpin for RevocationConfig
impl UnwindSafe for RevocationConfig
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