diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-08-24 13:05:17 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-08-24 13:05:17 +0200 |
commit | a42e294ee6a241f911ab14364439b6f11d76ea73 (patch) | |
tree | 30f60c03a7ad08ef862f424728dc5ba1813d7060 /openpgp/examples/decrypt-with.rs | |
parent | 4a5554331f454a7a1b3068ec17a9e56f07d3a5f8 (diff) |
openpgp: Make struct PKESK opaque, add getters and setters.
- See #57.
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 bed1677c..e023bcb9 100644 --- a/openpgp/examples/decrypt-with.rs +++ b/openpgp/examples/decrypt-with.rs @@ -59,7 +59,7 @@ pub fn main() { Packet::SEIP(_) => { let mut state = None; for pkesk in pkesks.iter() { - if let Some(tsk) = keys.get(&pkesk.recipient) { + if let Some(tsk) = keys.get(&pkesk.recipient()) { if let Some(SecretKey::Unencrypted{ref mpis}) = tsk.secret() { |