summaryrefslogtreecommitdiffstats
path: root/ipc/examples/gpg-agent-decrypt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/examples/gpg-agent-decrypt.rs')
-rw-r--r--ipc/examples/gpg-agent-decrypt.rs4
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> {