summaryrefslogtreecommitdiffstats
path: root/ipc/examples
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-01-14 09:37:04 +0100
committerNeal H. Walfield <neal@pep.foundation>2020-01-14 10:07:09 +0100
commit33ab7dd6d9b7f92afab67d8e00902a71a677c341 (patch)
tree75934a3bff0ae3e537807764634726548fa278c0 /ipc/examples
parent9e4e94e3378093baf569404b4be1ca8b7fedbe1b (diff)
openpgp: Remove unneeded fields from VerificationResult::NotAlive.
- VerificationResult::NotAlive means that the signature is not alive. This has nothing to do with a specific key. Indeed, there might not even be a key available, but we can still detect this error condition. - As such, remove the cert and key fields from VerificationResult::NotAlive.
Diffstat (limited to 'ipc/examples')
-rw-r--r--ipc/examples/gpg-agent-decrypt.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipc/examples/gpg-agent-decrypt.rs b/ipc/examples/gpg-agent-decrypt.rs
index 8b39762c..b1522f36 100644
--- a/ipc/examples/gpg-agent-decrypt.rs
+++ b/ipc/examples/gpg-agent-decrypt.rs
@@ -136,9 +136,9 @@ impl<'a> VerificationHelper for Helper<'a> {
GoodChecksum { cert, .. } => {
eprintln!("Good signature from {}", cert);
},
- NotAlive { cert, .. } => {
- eprintln!("Good, but not alive signature from {}",
- cert);
+ NotAlive { sig, .. } => {
+ eprintln!("Good, but not alive signature from {:?}",
+ sig.get_issuers());
},
MissingKey { .. } => {
eprintln!("No key to check signature");