From 7eae54c9fff3062aa8f3a4c3011a8a7e6890d3e1 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 10 Feb 2020 12:48:47 +0100 Subject: openpgp: New type RevocationKey. - See #431. --- tool/src/commands/dump.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tool') 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::>().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) => -- cgit v1.2.3