pub struct StapledOcspResponse {
pub response_der: Vec<u8>,
pub fetched_at: Instant,
pub next_update: Option<DateTime<Utc>>,
}Expand description
Cached OCSP response for TLS stapling.
RFC 6066 Section 8: the server provides a DER-encoded OCSPResponse
in the CertificateStatus handshake message when the client sends
the status_request extension.
The response is refreshed periodically by OcspStapler. If the
OCSP responder is unreachable, the stale response is served when
soft_fail is enabled (RFC 7633 Section 4 note: a stale but
unexpired response is preferable to no response at all).
Fields§
§response_der: Vec<u8>DER-encoded OCSPResponse bytes.
fetched_at: InstantWhen this response was fetched from the responder.
next_update: Option<DateTime<Utc>>The nextUpdate time from the OCSP response, if present.
Used to determine whether a stale cached response is still within tolerance for soft-fail serving.
Trait Implementations§
Source§impl Clone for StapledOcspResponse
impl Clone for StapledOcspResponse
Source§fn clone(&self) -> StapledOcspResponse
fn clone(&self) -> StapledOcspResponse
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 moreAuto Trait Implementations§
impl Freeze for StapledOcspResponse
impl RefUnwindSafe for StapledOcspResponse
impl Send for StapledOcspResponse
impl Sync for StapledOcspResponse
impl Unpin for StapledOcspResponse
impl UnsafeUnpin for StapledOcspResponse
impl UnwindSafe for StapledOcspResponse
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