summaryrefslogtreecommitdiffstats
path: root/openpgp/examples
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-01-16 17:33:57 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-01-16 18:01:45 +0100
commit9a30451890b61aa8121fde7570a7e1d1ebaa3778 (patch)
tree831f7683a05ebb119e5a3f39cb61b31942cd5fdf /openpgp/examples
parentf1dabd075d78cf45c4e0b2e61334267c22d7145b (diff)
openpgp: Remove variant VerificationResult::BadChecksum.
- This is better expressed as an error.
Diffstat (limited to 'openpgp/examples')
-rw-r--r--openpgp/examples/decrypt-with.rs3
-rw-r--r--openpgp/examples/generate-sign-verify.rs2
2 files changed, 0 insertions, 5 deletions
diff --git a/openpgp/examples/decrypt-with.rs b/openpgp/examples/decrypt-with.rs
index 9af4e197..3f470f0f 100644
--- a/openpgp/examples/decrypt-with.rs
+++ b/openpgp/examples/decrypt-with.rs
@@ -132,9 +132,6 @@ impl VerificationHelper for Helper {
MissingKey { .. } => {
eprintln!("No key to check signature");
},
- BadChecksum { cert, .. } => {
- eprintln!("Bad signature from {}", cert);
- },
Error { error, .. } => {
eprintln!("Error: {}", error);
},
diff --git a/openpgp/examples/generate-sign-verify.rs b/openpgp/examples/generate-sign-verify.rs
index fefc8a20..8df9f1cf 100644
--- a/openpgp/examples/generate-sign-verify.rs
+++ b/openpgp/examples/generate-sign-verify.rs
@@ -116,8 +116,6 @@ impl<'a> VerificationHelper for Helper<'a> {
Some(VerificationResult::MissingKey { .. }) =>
return Err(failure::err_msg(
"Missing key to verify signature")),
- Some(VerificationResult::BadChecksum { .. }) =>
- return Err(failure::err_msg("Bad signature")),
Some(VerificationResult::Error { error, .. }) =>
return Err(error),
None =>