summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/decrypt-with.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-12-12 16:43:56 +0100
committerJustus Winter <justus@sequoia-pgp.org>2018-12-12 16:43:56 +0100
commita0c09773b915305e325bb001c29591ecc976ad1a (patch)
tree45ef4216cec84b6dd91c979ccd3a51f641236ca9 /openpgp/examples/decrypt-with.rs
parente3d31910c565bac59f9adc8681c341771fe45ec7 (diff)
openpgp: Move SecretKey to packet::key.
Diffstat (limited to 'openpgp/examples/decrypt-with.rs')
-rw-r--r--openpgp/examples/decrypt-with.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/examples/decrypt-with.rs b/openpgp/examples/decrypt-with.rs
index 84f333db..bd8a2b13 100644
--- a/openpgp/examples/decrypt-with.rs
+++ b/openpgp/examples/decrypt-with.rs
@@ -8,6 +8,7 @@ use std::io;
extern crate failure;
extern crate sequoia_openpgp as openpgp;
+use openpgp::packet::key::SecretKey;
use openpgp::parse::stream::{
Decryptor, DecryptionHelper, Secret, VerificationHelper, VerificationResult,
};
@@ -55,7 +56,7 @@ impl Helper {
.unwrap_or(false)
{
// Only handle unencrypted secret keys.
- if let Some(openpgp::SecretKey::Unencrypted { ref mpis }) =
+ if let Some(SecretKey::Unencrypted { ref mpis }) =
key.secret()
{
keys.insert(key.fingerprint().to_keyid(),