summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-05-14 10:43:43 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-05-14 11:05:49 +0200
commit0e74cf1b42b239e26d21b531e6ba3694e6f9361c (patch)
tree9af9f135bf1682286e97ec074d52f659910ef056 /tool
parentec19b193720cca4529dc0bb109e615dff7a5959f (diff)
openpgp, openpgp-ffi: Normalize TPK::revoked()
- `TPK::revoked` returns a revocation status, not a boolean. Rename it to `TPK::revocation_status()`, like it is called in the FFI. - Like other methods, provide a `foo_at()` method and a `foo()` method.
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 6578dfed..bb7257de 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.revoked(None))?;
+ inspect_revocation(output, "", tpk.revocation_status())?;
inspect_key(output, "", tpk.primary(), tpk.primary_key_signature(),
tpk.certifications(),
print_keygrips, print_certifications)?;