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 /ipc | |
parent | f1dabd075d78cf45c4e0b2e61334267c22d7145b (diff) |
openpgp: Remove variant VerificationResult::BadChecksum.
- This is better expressed as an error.
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/examples/gpg-agent-decrypt.rs | 3 | ||||
-rw-r--r-- | ipc/tests/gpg-agent.rs | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/ipc/examples/gpg-agent-decrypt.rs b/ipc/examples/gpg-agent-decrypt.rs index b1522f36..69ba9d3b 100644 --- a/ipc/examples/gpg-agent-decrypt.rs +++ b/ipc/examples/gpg-agent-decrypt.rs @@ -143,9 +143,6 @@ impl<'a> VerificationHelper for Helper<'a> { MissingKey { .. } => { eprintln!("No key to check signature"); }, - BadChecksum { cert, .. } => { - eprintln!("Bad signature from {}", cert); - }, Error { error, .. } => { eprintln!("Error verifying signature: {}", error); diff --git a/ipc/tests/gpg-agent.rs b/ipc/tests/gpg-agent.rs index dec09d6b..8cb3216f 100644 --- a/ipc/tests/gpg-agent.rs +++ b/ipc/tests/gpg-agent.rs @@ -170,8 +170,6 @@ fn sign() { 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 => |