From f2f1db13b429de78745108a63f1ff7f21a4a3552 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 21 Jan 2020 12:36:21 +0100 Subject: openpgp: Change KeyIter to return KeyAmalgamations. - Change KeyIter to return KeyAmalgamations instead of Keys. - Given a `KeyAmalgamation`, it is possible to turn it into a `ValidKeyAmalgamation`. This is not possible with a `Key`. - With a `KeyAmalgamation`, it is still possible to query things about the certificate. --- tool/src/commands/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool') diff --git a/tool/src/commands/mod.rs b/tool/src/commands/mod.rs index 7dd6869a..24ce3337 100644 --- a/tool/src/commands/mod.rs +++ b/tool/src/commands/mod.rs @@ -322,7 +322,7 @@ impl<'a> VerificationHelper for VHelper<'a> { // Get all keys. let seen: HashSet<_> = certs.iter() .flat_map(|cert| { - cert.keys().map(|key| key.fingerprint().into()) + cert.keys().map(|ka| ka.key().fingerprint().into()) }).collect(); // Explicitly provided keys are trusted. -- cgit v1.2.3