diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-25 15:59:54 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-09 13:26:48 +0100 |
commit | fe8093bc1aef8c6a79fd1dc76f5cc857eae05d50 (patch) | |
tree | 1aa3021d49ec099e16083f12ca4aefcbf5fa1313 /tool | |
parent | 531e3252b86f6eacf02d7181c280e8c01c4a55f4 (diff) |
openpgp: Return Result from Signature::key_alive.
- See #371.
Diffstat (limited to 'tool')
-rw-r--r-- | tool/src/commands/inspect.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs index f2347610..b88b9649 100644 --- a/tool/src/commands/inspect.rs +++ b/tool/src/commands/inspect.rs @@ -178,10 +178,8 @@ fn inspect_key<P, R>(output: &mut dyn io::Write, R: openpgp::packet::key::KeyRole { if let Some(sig) = binding_signature { - if sig.key_expired(key, None) { - writeln!(output, "{} Expired", indent)?; - } else if ! sig.key_alive(key, None) { - writeln!(output, "{} Not yet valid", indent)?; + if let Err(e) = sig.key_alive(key, None) { + writeln!(output, "{} Invalid: {}", indent, e)?; } } |