diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-10 12:48:47 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-10 15:18:30 +0100 |
commit | 7eae54c9fff3062aa8f3a4c3011a8a7e6890d3e1 (patch) | |
tree | ad72787ee58684554bb84f1a8da266b889827dc4 /tool | |
parent | 99202aa7cc79337aa0bcd2895c0a57b8fe2308da (diff) |
openpgp: New type RevocationKey.
- See #431.
Diffstat (limited to 'tool')
-rw-r--r-- | tool/src/commands/dump.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tool/src/commands/dump.rs b/tool/src/commands/dump.rs index aed7fb15..349255b9 100644 --- a/tool/src/commands/dump.rs +++ b/tool/src/commands/dump.rs @@ -760,10 +760,15 @@ impl PacketDumper { write!(output, "{} Symmetric algo preferences: {}", i, c.iter().map(|c| format!("{:?}", c)) .collect::<Vec<String>>().join(", "))?, - RevocationKey{class, pk_algo, ref fp} => + RevocationKey(rk) => { + let (pk_algo, fp) = rk.revoker(); write!(output, - "{} Revocation key: class {} algo {} fingerprint {}", i, - class, pk_algo, fp)?, + "{} Revocation key: {}/{}", i, + fp, pk_algo)?; + if rk.sensitive() { + write!(output, ", sensitive")?; + } + }, Issuer(ref is) => write!(output, "{} Issuer: {}", i, is)?, NotationData(ref n) => |