diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-16 17:33:57 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-16 18:01:45 +0100 |
commit | 9a30451890b61aa8121fde7570a7e1d1ebaa3778 (patch) | |
tree | 831f7683a05ebb119e5a3f39cb61b31942cd5fdf /tool/src/commands/mod.rs | |
parent | f1dabd075d78cf45c4e0b2e61334267c22d7145b (diff) |
openpgp: Remove variant VerificationResult::BadChecksum.
- This is better expressed as an error.
Diffstat (limited to 'tool/src/commands/mod.rs')
-rw-r--r-- | tool/src/commands/mod.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tool/src/commands/mod.rs b/tool/src/commands/mod.rs index 7ca50253..1dc7b908 100644 --- a/tool/src/commands/mod.rs +++ b/tool/src/commands/mod.rs @@ -268,8 +268,7 @@ impl<'a> VHelper<'a> { } let (issuer, level) = match result { - GoodChecksum { sig, ka, .. } - | BadChecksum { sig, ka, .. } => + GoodChecksum { sig, ka, .. } => (ka.key().keyid(), sig.level()), NotAlive { sig, .. } => (sig.get_issuers().get(0) @@ -309,14 +308,6 @@ impl<'a> VHelper<'a> { self.bad_checksums += 1; } }, - BadChecksum { .. } => { - eprintln!("Bad {} from {}", what, label); - if trusted { - self.bad_signatures += 1; - } else { - self.bad_checksums += 1; - } - }, MissingKey { .. } => unreachable!("handled above"), Error { .. } => unreachable!("handled above"), } |