pub enum EstError {
Show 14 variants
InvalidBase64(String),
InvalidDer(String),
InvalidPkcs7(String),
InvalidPkcs10(String),
InvalidPkcs8(String),
InvalidCmc(String),
MissingField(String),
UnsupportedAlgorithm(String),
InvalidMultipart(String),
SubjectMismatch {
expected: String,
actual: String,
},
InvalidPop(String),
InvalidEku,
MlKemLevelMismatch {
requested: u16,
supported: u16,
},
Protocol(String),
}Expand description
EST protocol errors.
Variants§
InvalidBase64(String)
Invalid base64 encoding.
InvalidDer(String)
Invalid DER encoding.
InvalidPkcs7(String)
Invalid PKCS#7 structure.
InvalidPkcs10(String)
Invalid PKCS#10 CSR.
InvalidPkcs8(String)
Invalid PKCS#8 private key.
InvalidCmc(String)
Invalid CMC request.
MissingField(String)
Missing required field.
UnsupportedAlgorithm(String)
Unsupported algorithm.
InvalidMultipart(String)
Invalid multipart MIME structure.
SubjectMismatch
Subject mismatch in re-enrollment.
InvalidPop(String)
Invalid proof of possession.
InvalidEku
Invalid EKU for CMC RA.
MlKemLevelMismatch
ML-KEM level mismatch.
Protocol(String)
Generic protocol error.
Trait Implementations§
Source§impl Error for EstError
impl Error for EstError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for EstError
impl RefUnwindSafe for EstError
impl Send for EstError
impl Sync for EstError
impl Unpin for EstError
impl UnsafeUnpin for EstError
impl UnwindSafe for EstError
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