diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-09-18 15:46:44 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-09-18 15:46:44 +0200 |
commit | c619dffe8562872ad33c501b7f3c3cd9edb7f00b (patch) | |
tree | a4831b7cd4dce9ef945a17bdb4f099c913dd81d8 /tool | |
parent | 7597e26a646ea1e91896e9cb4466f4fbc1f2b2a4 (diff) |
openpgp: Combine Signature4::signature_expired and its _at variant.
- Combine Signature4::signature_expired and
Signature4::signature_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')
-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 438a2f77..526490e0 100644 --- a/tool/src/commands/inspect.rs +++ b/tool/src/commands/inspect.rs @@ -149,7 +149,7 @@ fn inspect_tpk(output: &mut io::Write, tpk: &openpgp::TPK, writeln!(output, " UserID: {}", uidb.userid())?; inspect_revocation(output, "", uidb.revoked(None))?; if let Some(sig) = uidb.binding_signature(None) { - if sig.signature_expired() { + if sig.signature_expired(None) { writeln!(output, " Expired")?; } else if ! sig.signature_alive() { writeln!(output, " Not yet valid")?; |