pub struct BorrowedOcspSingleResp<'a> { /* private fields */ }Expand description
A borrowed OCSP_SINGLERESP* whose lifetime is tied to its parent
OcspBasicResp.
Obtained from OcspBasicResp::get_response. Does not free the
underlying pointer on drop — the pointer is owned by the OCSP_BASICRESP
and freed when the OcspBasicResp is dropped.
Implementations§
Source§impl BorrowedOcspSingleResp<'_>
impl BorrowedOcspSingleResp<'_>
Sourcepub fn status(&self) -> Result<SingleRespStatus, ErrorStack>
pub fn status(&self) -> Result<SingleRespStatus, ErrorStack>
Extract the revocation status from this SingleResponse entry.
Calls OCSP_single_get0_status to retrieve the certificate status,
optional revocation reason, and the thisUpdate/nextUpdate/
revocationTime timestamps.
§Errors
Returns Err if OpenSSL returns an unrecognised status code (< 0).
Auto Trait Implementations§
impl<'a> Freeze for BorrowedOcspSingleResp<'a>
impl<'a> RefUnwindSafe for BorrowedOcspSingleResp<'a>
impl<'a> !Send for BorrowedOcspSingleResp<'a>
impl<'a> !Sync for BorrowedOcspSingleResp<'a>
impl<'a> Unpin for BorrowedOcspSingleResp<'a>
impl<'a> UnwindSafe for BorrowedOcspSingleResp<'a>
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