pub struct OcspResponse {
pub response_status: OcspResponseStatus,
pub response_bytes: Option<ResponseBytes>,
}Expand description
OCSPResponse structure as defined in RFC 6960 Section 4.2.1.
OCSPResponse ::= SEQUENCE {
responseStatus OCSPResponseStatus,
responseBytes [0] EXPLICIT ResponseBytes OPTIONAL }Fields§
§response_status: OcspResponseStatus§response_bytes: Option<ResponseBytes>Implementations§
Source§impl OcspResponse
impl OcspResponse
Sourcepub fn successful(res: impl AsResponseBytes) -> Result<Self, Error>
pub fn successful(res: impl AsResponseBytes) -> Result<Self, Error>
Encodes an OcspResponse with the status set to Successful
Sourcepub fn malformed_request() -> Self
pub fn malformed_request() -> Self
Encodes an OcspResponse with the status set to MalformedRequest
Sourcepub fn internal_error() -> Self
pub fn internal_error() -> Self
Encodes an OcspResponse with the status set to InternalError
Sourcepub fn sig_required() -> Self
pub fn sig_required() -> Self
Encodes an OcspResponse with the status set to SigRequired
Encodes an OcspResponse with the status set to Unauthorized
Trait Implementations§
Source§impl Clone for OcspResponse
impl Clone for OcspResponse
Source§fn clone(&self) -> OcspResponse
fn clone(&self) -> OcspResponse
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 OcspResponse
impl Debug for OcspResponse
Source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for OcspResponse
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for OcspResponse
Source§impl<'__der_lifetime> EncodeValue for OcspResponse
impl<'__der_lifetime> EncodeValue for OcspResponse
Source§impl PartialEq for OcspResponse
impl PartialEq for OcspResponse
impl Eq for OcspResponse
impl<'__der_lifetime> Sequence<'__der_lifetime> for OcspResponse
impl StructuralPartialEq for OcspResponse
Auto Trait Implementations§
impl Freeze for OcspResponse
impl RefUnwindSafe for OcspResponse
impl Send for OcspResponse
impl Sync for OcspResponse
impl Unpin for OcspResponse
impl UnwindSafe for OcspResponse
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,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
Source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer.
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.