diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-07 13:49:47 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-07 13:55:20 +0100 |
commit | d4e05895735fd2acf3e9a10fd24a00b405b43f48 (patch) | |
tree | 6a4ff9c0339ce916d2ae34612beac67c8862fb41 /tool | |
parent | 46b82da1232eda0e78b7d8053a65d8de8580b774 (diff) |
openpgp: Include the signing key's amalgamation in results.
- Only the amalgamation allows proper checking of a key's
properties, the binding signature alone isn't sufficient.
- Fixes #408.
Diffstat (limited to 'tool')
-rw-r--r-- | tool/src/commands/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tool/src/commands/mod.rs b/tool/src/commands/mod.rs index 77b0d051..12ca6c6a 100644 --- a/tool/src/commands/mod.rs +++ b/tool/src/commands/mod.rs @@ -252,9 +252,10 @@ impl<'a> VHelper<'a> { } let (issuer, level) = match result { - GoodChecksum { sig, key, .. } - | NotAlive { sig, key, .. } - | BadChecksum { sig, key, .. } => (key.keyid(), sig.level()), + GoodChecksum { sig, ka, .. } + | NotAlive { sig, ka, .. } + | BadChecksum { sig, ka, .. } => + (ka.key().keyid(), sig.level()), MissingKey { .. } => unreachable!("handled above"), }; |