diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-08-14 22:13:33 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-08-23 19:15:13 +0200 |
commit | 56eacae5037826b7d6bf15962065287960d8b894 (patch) | |
tree | 8f2249537cbca8904dbe2ecf45542e12404d7be3 /openpgp/src/tpk/keyiter.rs | |
parent | c678874604b1a48a9aa46276e001ed540a823c06 (diff) |
openpgp: Rename SecretKey to SecretKeyMaterial.
- When the `SecretKey` type only refers to the secret key material
and not a TPK-like thing, call it `SecretKeyMaterial`.
Diffstat (limited to 'openpgp/src/tpk/keyiter.rs')
-rw-r--r-- | openpgp/src/tpk/keyiter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/tpk/keyiter.rs b/openpgp/src/tpk/keyiter.rs index aa67a707..2e78555b 100644 --- a/openpgp/src/tpk/keyiter.rs +++ b/openpgp/src/tpk/keyiter.rs @@ -3,7 +3,7 @@ use std::fmt; use crate::{ RevocationStatus, packet::Key, - packet::key::SecretKey, + packet::key::SecretKeyMaterial, packet::KeyFlags, packet::Signature, TPK, @@ -154,7 +154,7 @@ impl<'a> Iterator for KeyIter<'a> { if let Some(want_unencrypted_secret) = self.unencrypted_secret { if let Some(secret) = key.secret() { - if let SecretKey::Unencrypted { .. } = secret { + if let SecretKeyMaterial::Unencrypted { .. } = secret { if ! want_unencrypted_secret { t!("Unencrypted secret... skipping."); continue; |