solti_tls/error.rs
1#[derive(Debug, thiserror::Error)]
2#[non_exhaustive]
3pub enum TlsError {
4 #[error("PEM I/O error: {0}")]
5 Io(#[from] std::io::Error),
6
7 #[error("no certificates found in PEM")]
8 NoCertificates,
9
10 #[error("no private key found in PEM")]
11 NoPrivateKey,
12
13 #[error("missing required field: {0}")]
14 MissingField(&'static str),
15
16 #[error("rustls error: {0}")]
17 Rustls(#[from] rustls::Error),
18
19 #[error("client verifier build failed: {0}")]
20 ClientVerifier(String),
21}