Struct openssl::ocsp::OcspResponseRef
source · [−]pub struct OcspResponseRef(_);
Implementations
sourceimpl 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
sourceimpl AsRef<OcspResponseRef> for OcspResponse
impl AsRef<OcspResponseRef> for OcspResponse
sourcefn as_ref(&self) -> &OcspResponseRef
fn as_ref(&self) -> &OcspResponseRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<OcspResponseRef> for OcspResponse
impl Borrow<OcspResponseRef> for OcspResponse
sourcefn borrow(&self) -> &OcspResponseRef
fn borrow(&self) -> &OcspResponseRef
Immutably borrows from an owned value. Read more
sourceimpl ForeignTypeRef for OcspResponseRef
impl ForeignTypeRef for OcspResponseRef
impl Send for OcspResponseRef
impl Sync for OcspResponseRef
Auto Trait Implementations
impl !RefUnwindSafe for OcspResponseRef
impl Unpin for OcspResponseRef
impl UnwindSafe for OcspResponseRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more