signstar_host/sign/
error.rs1#[derive(Debug, thiserror::Error)]
5pub enum Error {
6 #[cfg(not(any(feature = "nethsm", feature = "yubihsm2")))]
7 #[error("No HSM backend support compiled in")]
9 NoBackend,
10
11 #[cfg(any(feature = "nethsm", feature = "yubihsm2"))]
13 #[error("No connection set for the backend")]
14 NoConnection,
15
16 #[cfg(any(feature = "nethsm", feature = "yubihsm2"))]
18 #[error("No credentials for the system user")]
19 NoCredentials,
20
21 #[error("Unsupported signing request parameters")]
23 UnsupportedParameters,
24
25 #[error("Unsupported signer setup")]
27 #[cfg(any(feature = "nethsm", feature = "yubihsm2"))]
28 UnsupportedSignerSetup,
29}