summaryrefslogtreecommitdiffstats
path: root/tool/src/commands/inspect.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-01-15 17:52:00 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-01-18 14:24:48 +0100
commit6bf3deb539ac91bba56efa57127c6c0567cf161c (patch)
treea94628796020071e2210b9c6a8d5c57b067e696e /tool/src/commands/inspect.rs
parent94c64d7a831227888c2ab6b5fe9ec0c29781caec (diff)
openpgp: Use Cert::keys instead of Cert::subkeys.
Diffstat (limited to 'tool/src/commands/inspect.rs')
-rw-r--r--tool/src/commands/inspect.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs
index 8849b0ad..417ded93 100644
--- a/tool/src/commands/inspect.rs
+++ b/tool/src/commands/inspect.rs
@@ -138,11 +138,11 @@ fn inspect_cert(output: &mut dyn io::Write, cert: &openpgp::Cert,
print_keygrips, print_certifications)?;
writeln!(output)?;
- for skb in cert.subkeys() {
- writeln!(output, " Subkey: {}", skb.key().fingerprint())?;
- inspect_revocation(output, "", skb.revoked(None))?;
- inspect_key(output, "", skb.key(), skb.binding_signature(None),
- skb.certifications(),
+ for ka in cert.keys().policy(None).skip(1) {
+ writeln!(output, " Subkey: {}", ka.key().fingerprint())?;
+ inspect_revocation(output, "", ka.revoked())?;
+ inspect_key(output, "", ka.key(), ka.binding_signature(),
+ ka.component().certifications(),
print_keygrips, print_certifications)?;
writeln!(output)?;
}