pub enum OcspCertStatus {
Good,
Revoked {
reason: i32,
},
Unknown,
}Expand description
Per-certificate revocation status from an OCSP_SINGLERESP.
Returned inside OcspSingleStatus by OcspBasicResp::find_status.
Variants§
Good
Certificate is currently valid (V_OCSP_CERTSTATUS_GOOD = 0).
Revoked
Certificate has been revoked (V_OCSP_CERTSTATUS_REVOKED = 1).
reason is one of the CRLReason codes (RFC 5280 §5.3.1):
0=unspecified, 1=keyCompromise, 2=cACompromise, 3=affiliationChanged,
4=superseded, 5=cessationOfOperation, 6=certificateHold, 8=removeFromCRL,
9=privilegeWithdrawn, 10=aACompromise. -1 means no reason was given.
Unknown
Responder does not know this certificate (V_OCSP_CERTSTATUS_UNKNOWN = 2).
Trait Implementations§
Source§impl Clone for OcspCertStatus
impl Clone for OcspCertStatus
Source§fn clone(&self) -> OcspCertStatus
fn clone(&self) -> OcspCertStatus
Returns a duplicate 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 OcspCertStatus
impl Debug for OcspCertStatus
Source§impl PartialEq for OcspCertStatus
impl PartialEq for OcspCertStatus
impl Eq for OcspCertStatus
impl StructuralPartialEq for OcspCertStatus
Auto Trait Implementations§
impl Freeze for OcspCertStatus
impl RefUnwindSafe for OcspCertStatus
impl Send for OcspCertStatus
impl Sync for OcspCertStatus
impl Unpin for OcspCertStatus
impl UnsafeUnpin for OcspCertStatus
impl UnwindSafe for OcspCertStatus
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