diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2021-12-29 15:31:25 +0100 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2021-12-31 09:56:11 +0100 |
commit | de8fab8d1b74fa87d3c20d7a2b9e49aea929e6ea (patch) | |
tree | 06265139ecc5295846bb507ddaecd90cfa586ebd /openpgp/src/lib.rs | |
parent | 0e23277b852edf1317df4aebaaabe5a404a6ad05 (diff) |
openpgp: Add ability to restrict hash algorithms for signing.
Diffstat (limited to 'openpgp/src/lib.rs')
-rw-r--r-- | openpgp/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs index 4cc96884..11878174 100644 --- a/openpgp/src/lib.rs +++ b/openpgp/src/lib.rs @@ -318,6 +318,10 @@ pub enum Error { #[error("Invalid key: {0:?}")] InvalidKey(String), + /// No hash algorithm found that would be accepted by all signers. + #[error("No acceptable hash")] + NoAcceptableHash, + /// The operation is not allowed, because it violates the policy. /// /// The optional time is the time at which the operation was |