diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-04-02 16:46:21 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-04-02 17:04:04 +0200 |
commit | 717fbd73b9086beec7c9ed30926c604612f067a3 (patch) | |
tree | 8acebbaef9de25ed4ecfbb7944885657fd5ae7e5 /tool/src | |
parent | 4e6d4a045af89567b8ff84c830775649d09900b0 (diff) |
openpgp: Improve the VerificationHelper protocol.
- Change VerificationResult::GoodChecksum to include references to
the TPK that contained the signing key, the key itself, a binding
signature (if any), and any revocation information.
- Fixes #140.
Diffstat (limited to 'tool/src')
-rw-r--r-- | tool/src/commands/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/src/commands/mod.rs b/tool/src/commands/mod.rs index ca099eaf..feb3e41e 100644 --- a/tool/src/commands/mod.rs +++ b/tool/src/commands/mod.rs @@ -246,7 +246,7 @@ impl<'a> VerificationHelper for VHelper<'a> { for (i, results) in sigs.into_iter().enumerate() { for result in results { let issuer = match result { - GoodChecksum(ref sig) => sig.get_issuer(), + GoodChecksum(ref sig, ..) => sig.get_issuer(), MissingKey(ref sig) => sig.get_issuer(), BadChecksum(ref sig) => sig.get_issuer(), }; @@ -263,7 +263,7 @@ impl<'a> VerificationHelper for VHelper<'a> { }; match result { - GoodChecksum(_) => { + GoodChecksum(..) => { let issuer = issuer .expect("good checksum has an issuer"); let issuer_str = format!("{}", issuer); |