pub enum OcspError {
Show 14 variants
Asn1DecodingError(Asn1DerError),
Asn1MismatchError(&'static str),
Asn1Utf8Error(Utf8Error),
Asn1LengthError(&'static str),
Asn1OidUnknown,
Asn1LengthOverflow(usize),
OcspExtUnknown,
OcspUndefinedTagging,
OcspUnsupportedResponseType,
OcspRespStatusError(&'static str),
OcspRespUndefinedStatus(u8),
GenInvalidDate(i32, u32, u32),
GenInvalidTime(u32, u32, u32),
GenRevokeInfoNotFound,
}
Expand description
crate error enum
Variants§
Asn1DecodingError(Asn1DerError)
cannot convert raw data into asn1_der::typed::*;
Asn1MismatchError(&'static str)
cannot find matching sequence
eg. oid sequence is not 0x06, 0x05
Asn1Utf8Error(Utf8Error)
unable to parse vec<u8> to &str
eg. requestorName
Asn1LengthError(&'static str)
sequence length does not match intended data
eg. oid length is not 2, 0x06, 0x05
Asn1OidUnknown
Cannot find oid in predefined list
Asn1LengthOverflow(usize)
ASN.1 TLV reaches max length allowed
OcspExtUnknown
Cannot recognize ocsp extension
OcspUndefinedTagging
Explicit tag not defined in RFC
OcspUnsupportedResponseType
OCSP response type is not supported
OcspRespStatusError(&'static str)
Creating an OCSP response with inappropriate method
OcspRespUndefinedStatus(u8)
Undefined OCSP response status
GenInvalidDate(i32, u32, u32)
Cannot parse provided date
GenInvalidTime(u32, u32, u32)
Cannot parse provided time
GenRevokeInfoNotFound
Missing revoke info for revoked certificate
Trait Implementations§
source§impl Error for OcspError
impl Error for OcspError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Asn1DerError> for OcspError
impl From<Asn1DerError> for OcspError
source§fn from(source: Asn1DerError) -> Self
fn from(source: Asn1DerError) -> Self
Converts to this type from the input type.