Struct openssl::ocsp::OcspResponseStatus
source · pub struct OcspResponseStatus(_);
Implementations§
source§impl OcspResponseStatus
impl OcspResponseStatus
pub const SUCCESSFUL: OcspResponseStatus = _
pub const MALFORMED_REQUEST: OcspResponseStatus = _
pub const INTERNAL_ERROR: OcspResponseStatus = _
pub const TRY_LATER: OcspResponseStatus = _
pub const SIG_REQUIRED: OcspResponseStatus = _
pub const UNAUTHORIZED: OcspResponseStatus = _
pub fn from_raw(raw: c_int) -> OcspResponseStatus
sourcepub fn as_raw(&self) -> c_int
pub fn as_raw(&self) -> c_int
Examples found in repository?
src/ocsp.rs (line 260)
252 253 254 255 256 257 258 259 260 261 262 263 264 265
pub fn create(
status: OcspResponseStatus,
body: Option<&OcspBasicResponseRef>,
) -> Result<OcspResponse, ErrorStack> {
unsafe {
ffi::init();
cvt_p(ffi::OCSP_response_create(
status.as_raw(),
body.map(|r| r.as_ptr()).unwrap_or(ptr::null_mut()),
))
.map(OcspResponse)
}
}
Trait Implementations§
source§impl Clone for OcspResponseStatus
impl Clone for OcspResponseStatus
source§fn clone(&self) -> OcspResponseStatus
fn clone(&self) -> OcspResponseStatus
Returns a copy 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 OcspResponseStatus
impl Debug for OcspResponseStatus
source§impl PartialEq<OcspResponseStatus> for OcspResponseStatus
impl PartialEq<OcspResponseStatus> for OcspResponseStatus
source§fn eq(&self, other: &OcspResponseStatus) -> bool
fn eq(&self, other: &OcspResponseStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.