diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-09-18 18:49:29 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-09-18 18:49:29 +0200 |
commit | 6cbc940b4f59d9d9ddaef729fb8db7b6ec63e533 (patch) | |
tree | 25a52bb5e84216ca0f5a34b2ace8facfff5bdd4c /tool/src/commands/inspect.rs | |
parent | 044854773282eed2be23aab511d5dc38ffbe21ca (diff) |
openpgp: Change TPK::primary to return the key and not the binding
- The primary key is not a binding; it is a single component.
Thus, returning a ComponentBinding is misleading.
- Add methods to the TPK structure to return the direct signatures,
certifications, self revocations, and other revocations.
Diffstat (limited to 'tool/src/commands/inspect.rs')
-rw-r--r-- | tool/src/commands/inspect.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs index 6d594c51..77694b0e 100644 --- a/tool/src/commands/inspect.rs +++ b/tool/src/commands/inspect.rs @@ -131,8 +131,8 @@ fn inspect_tpk(output: &mut io::Write, tpk: &openpgp::TPK, writeln!(output)?; writeln!(output, " Fingerprint: {}", tpk.fingerprint())?; inspect_revocation(output, "", tpk.revoked(None))?; - inspect_key(output, "", tpk.primary().key(), tpk.primary_key_signature(None), - tpk.primary().certifications(), + inspect_key(output, "", tpk.primary(), tpk.primary_key_signature(None), + tpk.certifications(), print_keygrips, print_certifications)?; writeln!(output)?; |