summaryrefslogtreecommitdiffstats
path: root/openpgp/src/policy.rs
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2021-04-29 13:53:18 +0200
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2021-04-29 13:53:18 +0200
commitf31206e11121ee0b92bae2a0661d1698f7d49322 (patch)
tree4a9dbcea3887451c2160cd19ab74d36e4b6f4641 /openpgp/src/policy.rs
parentd29b0918cc60e26c3eea097e1b7fc566530b87f0 (diff)
openpgp: Fix error message wording on policy rejection.
Diffstat (limited to 'openpgp/src/policy.rs')
-rw-r--r--openpgp/src/policy.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/policy.rs b/openpgp/src/policy.rs
index 70d097b2..61fc014f 100644
--- a/openpgp/src/policy.rs
+++ b/openpgp/src/policy.rs
@@ -1421,7 +1421,7 @@ impl<'a> Policy for StandardPolicy<'a> {
let time = self.time.unwrap_or_else(Timestamp::now);
self.asymmetric_algos.check(a, time, None)
- .context("Policy rejected encryption algorithm")
+ .context("Policy rejected asymmetric algorithm")
}
fn packet(&self, packet: &Packet) -> Result<()> {