pub struct OcspConfig {
pub enabled: bool,
pub responder_url: Option<String>,
pub cache_ttl_secs: u64,
pub timeout_secs: u64,
pub require_nonce: bool,
pub soft_fail: bool,
}Expand description
OCSP configuration.
Loaded from the [ocsp] section of the Kipuka configuration file.
Fields§
§enabled: boolWhether OCSP checking is enabled. Default: false.
responder_url: Option<String>Override OCSP responder URL. When None, the AIA extension
from the certificate is used (RFC 5280 §4.2.2.1).
cache_ttl_secs: u64Cache TTL in seconds. Default: 300 (5 minutes).
timeout_secs: u64HTTP timeout in seconds for OCSP requests. Default: 10.
require_nonce: boolWhether to require a nonce in responses (RFC 6960 §4.4.1).
Default: true.
soft_fail: boolSoft-fail mode: if true, accept the certificate when the OCSP
responder is unreachable. If false, reject. Default: false.
Trait Implementations§
Source§impl Clone for OcspConfig
impl Clone for OcspConfig
Source§fn clone(&self) -> OcspConfig
fn clone(&self) -> OcspConfig
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 OcspConfig
impl Debug for OcspConfig
Source§impl Default for OcspConfig
impl Default for OcspConfig
Source§impl<'de> Deserialize<'de> for OcspConfigwhere
OcspConfig: Default,
impl<'de> Deserialize<'de> for OcspConfigwhere
OcspConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OcspConfig
impl RefUnwindSafe for OcspConfig
impl Send for OcspConfig
impl Sync for OcspConfig
impl Unpin for OcspConfig
impl UnsafeUnpin for OcspConfig
impl UnwindSafe for OcspConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more