summaryrefslogtreecommitdiffstats
path: root/openpgp/src/lib.rs
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2021-12-29 15:31:25 +0100
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2021-12-31 09:56:11 +0100
commitde8fab8d1b74fa87d3c20d7a2b9e49aea929e6ea (patch)
tree06265139ecc5295846bb507ddaecd90cfa586ebd /openpgp/src/lib.rs
parent0e23277b852edf1317df4aebaaabe5a404a6ad05 (diff)
openpgp: Add ability to restrict hash algorithms for signing.
Diffstat (limited to 'openpgp/src/lib.rs')
-rw-r--r--openpgp/src/lib.rs4
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