From d4e05895735fd2acf3e9a10fd24a00b405b43f48 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 7 Jan 2020 13:49:47 +0100 Subject: 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. --- tool/src/commands/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tool') 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"), }; -- cgit v1.2.3