diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-01-14 09:37:04 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-01-14 10:07:09 +0100 |
commit | 33ab7dd6d9b7f92afab67d8e00902a71a677c341 (patch) | |
tree | 75934a3bff0ae3e537807764634726548fa278c0 /openpgp/examples | |
parent | 9e4e94e3378093baf569404b4be1ca8b7fedbe1b (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 'openpgp/examples')
-rw-r--r-- | openpgp/examples/decrypt-with.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/examples/decrypt-with.rs b/openpgp/examples/decrypt-with.rs index 2892761e..9af4e197 100644 --- a/openpgp/examples/decrypt-with.rs +++ b/openpgp/examples/decrypt-with.rs @@ -125,9 +125,9 @@ impl VerificationHelper for Helper { 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"); |