diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-12-12 16:43:56 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-12-12 16:43:56 +0100 |
commit | a0c09773b915305e325bb001c29591ecc976ad1a (patch) | |
tree | 45ef4216cec84b6dd91c979ccd3a51f641236ca9 /openpgp/examples/decrypt-with.rs | |
parent | e3d31910c565bac59f9adc8681c341771fe45ec7 (diff) |
openpgp: Move SecretKey to packet::key.
Diffstat (limited to 'openpgp/examples/decrypt-with.rs')
-rw-r--r-- | openpgp/examples/decrypt-with.rs | 3 |
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(), |