From c619dffe8562872ad33c501b7f3c3cd9edb7f00b Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Wed, 18 Sep 2019 15:46:44 +0200 Subject: openpgp: Combine Signature4::signature_expired and its _at variant. - Combine Signature4::signature_expired and Signature4::signature_expired_at. - Use an Into> to distinguish the two previous cases: the current time (None), and a specific time (a time::Tm). --- tool/src/commands/inspect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/src') 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")?; -- cgit v1.2.3