diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-03-27 17:15:55 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-03-27 17:58:29 +0100 |
commit | 277dc695e015e4997b982939967578a0138a4f88 (patch) | |
tree | 6985bb04aa3eec294631c71d8e0eb39ed5c66d87 | |
parent | ffd468e0dadf8065f8ce21a62cbea8e59ec09c60 (diff) |
openpgp: Improve context message for policy violations.
-rw-r--r-- | openpgp/src/policy.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openpgp/src/policy.rs b/openpgp/src/policy.rs index 3e31a595..eb007595 100644 --- a/openpgp/src/policy.rs +++ b/openpgp/src/policy.rs @@ -729,12 +729,14 @@ impl<'a> Policy for StandardPolicy<'a> { | t @ SignatureType::CertificationRevocation => { self.hash_algos_revocation.check(sig.hash_algo(), time) - .context(format!("revocation signature ({})", t))? + .context(format!( + "Not secure for revocation signature ({})", t))? } t => { self.hash_algos_normal.check(sig.hash_algo(), time) - .context(format!("non-revocation signature ({})", t))? + .context(format!( + "Not secure for non-revocation signature ({})", t))? } } |