diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-09-18 14:23:55 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-09-18 15:22:50 +0200 |
commit | 212202e5bec054cc3b2b83edffdd8b83db5bf011 (patch) | |
tree | c70a8449148eaf23af1bb6d7ee15fd0aba4a029f /openpgp/src/tpk/keyiter.rs | |
parent | 446dfdbcb63af00daa3a777958419e1dfb6fc737 (diff) |
openpgp: Combine Signature4::key_alive and its _at variant.
- Combine Signature4::key_alive and Signature4::key_alive_at.
- Use an Into<Option<time::Tm>> to distinguish the two previous
cases: the current time (None), and a specific time (a time::Tm).
Diffstat (limited to 'openpgp/src/tpk/keyiter.rs')
-rw-r--r-- | openpgp/src/tpk/keyiter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/tpk/keyiter.rs b/openpgp/src/tpk/keyiter.rs index af9f8eae..98a0b57c 100644 --- a/openpgp/src/tpk/keyiter.rs +++ b/openpgp/src/tpk/keyiter.rs @@ -123,7 +123,7 @@ impl<'a, P: 'a + key::KeyParts, R: 'a + key::KeyRole> Iterator if let Some(alive_at) = self.alive_at { if let Some(sig) = sigo { - if ! sig.key_alive_at(key, alive_at) { + if ! sig.key_alive(key, alive_at) { t!("Key not alive... skipping."); continue; } |