diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-18 14:44:53 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-18 16:21:46 +0100 |
commit | 7a6701001a9408a8eae6faedc91b5d2c42611c5c (patch) | |
tree | 21c0080676d791996043ddc133e0fa96879c144e /ipc/examples | |
parent | 1e19e63f9a717df2c3dbb50b18665844e64cef9a (diff) |
openpgp: Make type aliases for keys pub(crate).
- They can still be used as a convenience, but the documentation
will refer to them as their expanded counterparts.
- This makes the structure of they Key<_, _> type more visible.
Diffstat (limited to 'ipc/examples')
-rw-r--r-- | ipc/examples/gpg-agent-decrypt.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipc/examples/gpg-agent-decrypt.rs b/ipc/examples/gpg-agent-decrypt.rs index fa76c970..f59912a5 100644 --- a/ipc/examples/gpg-agent-decrypt.rs +++ b/ipc/examples/gpg-agent-decrypt.rs @@ -9,6 +9,7 @@ extern crate sequoia_ipc as ipc; use crate::openpgp::crypto::SessionKey; use crate::openpgp::types::SymmetricAlgorithm; +use crate::openpgp::packet::key; use crate::openpgp::parse::{ Parse, stream::{ @@ -63,7 +64,8 @@ fn main() { /// verification policy. struct Helper<'a> { ctx: &'a Context, - keys: HashMap<openpgp::KeyID, openpgp::packet::key::UnspecifiedPublic>, + keys: HashMap<openpgp::KeyID, + openpgp::packet::Key<key::PublicParts, key::UnspecifiedRole>>, } impl<'a> Helper<'a> { |