diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-09-18 10:54:38 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-09-18 11:37:55 +0200 |
commit | ef437f8efb1ddef3bd09427274b160e17a5cbf93 (patch) | |
tree | 2e3b93f6a37b85ba15977f8896dc99a4bd2854f1 /tool/src | |
parent | d82b21d5ab152ab67ead5c720979320ea20bdb58 (diff) |
openpgp: Combine Signature4::key_expired and its _at variant.
- Combine Signature4::key_expired and Signature4::key_expired_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 'tool/src')
-rw-r--r-- | tool/src/commands/inspect.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs index ac167e12..e1e8a217 100644 --- a/tool/src/commands/inspect.rs +++ b/tool/src/commands/inspect.rs @@ -176,7 +176,7 @@ fn inspect_key<P, R>(output: &mut io::Write, R: openpgp::packet::key::KeyRole { if let Some(sig) = binding_signature { - if sig.key_expired(key) { + if sig.key_expired(key, None) { writeln!(output, "{} Expired", indent)?; } else if ! sig.key_alive(key) { writeln!(output, "{} Not yet valid", indent)?; |