summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-05-16 17:11:26 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-05-16 17:11:26 +0200
commitba036bfb1f4c6def2f916b9ef135ec7b5a98fcdb (patch)
tree0c40bf4d07a500c100c20313d9125aac2efb5cb9 /tool
parentc05e6e2dbd4f0e22a1b74c3e9ef8f05b4479aad8 (diff)
openpgp: Introduce trait Policy. WIPfix-274
- Add a new trait `sequoia_openpgp::Policy`. Currently, this trait only has one method that returns the current time. This time is used when evaluating signatures. - Use this trait in TPK::{revocation_status,alive,expired}. Remove the corresponding *_at() functions. - Fixes #274.
Diffstat (limited to 'tool')
-rw-r--r--tool/src/commands/inspect.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs
index bb7257de..324c0e03 100644
--- a/tool/src/commands/inspect.rs
+++ b/tool/src/commands/inspect.rs
@@ -130,7 +130,7 @@ fn inspect_tpk(output: &mut io::Write, tpk: &openpgp::TPK,
if tpk.is_tsk() { "Secret" } else { "Public" })?;
writeln!(output)?;
writeln!(output, " Fingerprint: {}", tpk.fingerprint())?;
- inspect_revocation(output, "", tpk.revocation_status())?;
+ inspect_revocation(output, "", tpk.revocation_status(None))?;
inspect_key(output, "", tpk.primary(), tpk.primary_key_signature(),
tpk.certifications(),
print_keygrips, print_certifications)?;