summaryrefslogtreecommitdiffstats
path: root/ipc/examples
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-11-09 23:55:02 +0100
committerNeal H. Walfield <neal@pep.foundation>2019-11-10 00:05:23 +0100
commitb8e5ef908ee211daee84a0782a115ae7fc003ec0 (patch)
tree360698ced26dc36aad015e11b89137d613b89208 /ipc/examples
parent365862ed513057900c0d6c106ec51dff0a09693e (diff)
openpgp: Distinguish bad signatures from those that are not alive.
- Return a different `VerificationResult` for signatures that are not alive (BadSignature) from signatures that are actually bad (BadCheck).
Diffstat (limited to 'ipc/examples')
-rw-r--r--ipc/examples/gpg-agent-decrypt.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipc/examples/gpg-agent-decrypt.rs b/ipc/examples/gpg-agent-decrypt.rs
index 0faa57a3..e9874726 100644
--- a/ipc/examples/gpg-agent-decrypt.rs
+++ b/ipc/examples/gpg-agent-decrypt.rs
@@ -138,6 +138,13 @@ impl<'a> VerificationHelper for Helper<'a> {
.expect("good checksum has an issuer");
eprintln!("Good signature from {}", issuer);
},
+ NotAlive(ref sig) => {
+ let issuer = sig.issuer()
+ .expect("Good, but not live signature has an \
+ issuer");
+ eprintln!("Good, but not live signature from {}",
+ issuer);
+ },
MissingKey(ref sig) => {
let issuer = sig.issuer()
.expect("missing key checksum has an \