diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-01-21 12:36:21 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-01-21 14:51:25 +0100 |
commit | f2f1db13b429de78745108a63f1ff7f21a4a3552 (patch) | |
tree | 108ed79fd6f841510086059dd4ca1699d179239a /tool/src/commands | |
parent | 8897d08a3281c5744bc842be0dcba92439e84085 (diff) |
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.
Diffstat (limited to 'tool/src/commands')
-rw-r--r-- | tool/src/commands/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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. |