Struct openssl::ocsp::OcspResponseRef
source · 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
§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.
impl Send for OcspResponseRef
impl Sync for OcspResponseRef
Auto Trait Implementations§
impl !Freeze for OcspResponseRef
impl !RefUnwindSafe for OcspResponseRef
impl Unpin for OcspResponseRef
impl UnwindSafe for OcspResponseRef
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