pub struct OcspResponseRef(/* private fields */);Implementations§
Source§impl OcspResponseRef
impl OcspResponseRef
Sourcepub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the response to its standard DER encoding.
This corresponds to i2d_OCSP_RESPONSE.
Sourcepub fn status(&self) -> OcspResponseStatus
pub fn status(&self) -> OcspResponseStatus
Returns the status of the response.
This corresponds to OCSP_response_status.
Sourcepub fn basic(&self) -> Result<OcspBasicResponse, ErrorStack>
pub fn basic(&self) -> Result<OcspBasicResponse, ErrorStack>
Returns the basic response.
This will only succeed if status() returns RESPONSE_STATUS_SUCCESSFUL.
This corresponds to OCSP_response_get1_basic.
Trait Implementations§
Source§impl AsRef<OcspResponseRef> for OcspResponse
impl AsRef<OcspResponseRef> for OcspResponse
Source§fn as_ref(&self) -> &OcspResponseRef
fn as_ref(&self) -> &OcspResponseRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<OcspResponseRef> for OcspResponse
impl Borrow<OcspResponseRef> for OcspResponse
Source§fn borrow(&self) -> &OcspResponseRef
fn borrow(&self) -> &OcspResponseRef
Immutably borrows from an owned value. Read more
Source§impl ForeignTypeRef for OcspResponseRef
impl ForeignTypeRef for OcspResponseRef
Source§type CType = OCSP_RESPONSE
type CType = OCSP_RESPONSE
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type.
Source§unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type.