summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-11-05 15:04:00 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-11-05 15:40:27 +0100
commit2e5bf44f1fcbdbcd536064c309b4cbb26b2bc67f (patch)
tree8ff0b806977af6e620443aa751e4edcf87f048a6 /tool
parent2b3319afa4d646930da7faf836dd8264ea78e6a7 (diff)
openpgp: Make fields of SubpacketValue private.
Diffstat (limited to 'tool')
-rw-r--r--tool/src/commands/dump.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/tool/src/commands/dump.rs b/tool/src/commands/dump.rs
index 3f942e60..d75a5c7c 100644
--- a/tool/src/commands/dump.rs
+++ b/tool/src/commands/dump.rs
@@ -700,15 +700,15 @@ impl PacketDumper {
Ok(())
};
- match s.value {
+ match s.value() {
Unknown(ref b) => {
- writeln!(output, "{} {:?}{}:", i, s.tag,
- if s.critical { " (critical)" } else { "" })?;
+ writeln!(output, "{} {:?}{}:", i, s.tag(),
+ if s.critical() { " (critical)" } else { "" })?;
hexdump_unknown(output, b)?;
},
Invalid(ref b) => {
- writeln!(output, "{} {:?}{}:", i, s.tag,
- if s.critical { " (critical)" } else { "" })?;
+ writeln!(output, "{} {:?}{}:", i, s.tag(),
+ if s.critical() { " (critical)" } else { "" })?;
hexdump_unknown(output, b)?;
},
SignatureCreationTime(ref t) =>
@@ -793,10 +793,10 @@ impl PacketDumper {
write!(output, "{} Intended Recipient: {}", i, fp)?,
}
- match s.value {
+ match s.value() {
Unknown(_) | Invalid(_) => (),
EmbeddedSignature(ref sig) => {
- if s.critical {
+ if s.critical() {
write!(output, " (critical)")?;
}
writeln!(output)?;
@@ -804,7 +804,7 @@ impl PacketDumper {
self.dump_packet(output, &indent, None, sig, None, None)?;
},
_ => {
- if s.critical {
+ if s.critical() {
write!(output, " (critical)")?;
}
writeln!(output)?;