diff options
author | Neal H. Walfield <neal@pep.foundation> | 2018-12-17 12:48:07 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2018-12-17 15:45:59 +0100 |
commit | 3366d09c94c88bb8366ed470e49ff841f336b894 (patch) | |
tree | 57e4e6dc28cc9457cf57555e941753812d03c34f /openpgp/examples/decrypt-with.rs | |
parent | 05e1b5dc9d189e3129f8da2c6beacb014f3fd698 (diff) |
openpgp: Change KeyIter to also return the RevocationStatus.
- A Key's revocation status is a property of its binding, but the
binding is not exposed by KeyIter. Expose it.
Diffstat (limited to 'openpgp/examples/decrypt-with.rs')
-rw-r--r-- | openpgp/examples/decrypt-with.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/examples/decrypt-with.rs b/openpgp/examples/decrypt-with.rs index c273a202..176e03de 100644 --- a/openpgp/examples/decrypt-with.rs +++ b/openpgp/examples/decrypt-with.rs @@ -57,7 +57,7 @@ impl Helper { // Map (sub)KeyIDs to secrets. let mut keys = HashMap::new(); for tpk in tpks { - for (sig, key) in tpk.keys() { + for (sig, _, key) in tpk.keys() { if sig.map(|s| (s.key_flags().can_encrypt_at_rest() || s.key_flags().can_encrypt_for_transport())) .unwrap_or(false) |