Lines Matching defs:OcspResponseStatus
34 pub struct OcspResponseStatus(c_int);
36 impl OcspResponseStatus {
37 pub const SUCCESSFUL: OcspResponseStatus =
38 OcspResponseStatus(ffi::OCSP_RESPONSE_STATUS_SUCCESSFUL);
39 pub const MALFORMED_REQUEST: OcspResponseStatus =
40 OcspResponseStatus(ffi::OCSP_RESPONSE_STATUS_MALFORMEDREQUEST);
41 pub const INTERNAL_ERROR: OcspResponseStatus =
42 OcspResponseStatus(ffi::OCSP_RESPONSE_STATUS_INTERNALERROR);
43 pub const TRY_LATER: OcspResponseStatus =
44 OcspResponseStatus(ffi::OCSP_RESPONSE_STATUS_TRYLATER);
45 pub const SIG_REQUIRED: OcspResponseStatus =
46 OcspResponseStatus(ffi::OCSP_RESPONSE_STATUS_SIGREQUIRED);
47 pub const UNAUTHORIZED: OcspResponseStatus =
48 OcspResponseStatus(ffi::OCSP_RESPONSE_STATUS_UNAUTHORIZED);
50 pub fn from_raw(raw: c_int) -> OcspResponseStatus {
51 OcspResponseStatus(raw)
253 status: OcspResponseStatus,
286 pub fn status(&self) -> OcspResponseStatus {
287 unsafe { OcspResponseStatus(ffi::OCSP_response_status(self.as_ptr())) }