summaryrefslogtreecommitdiffstats
path: root/examples
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 /examples
parent94c64d7a831227888c2ab6b5fe9ec0c29781caec (diff)
openpgp: Use Cert::keys instead of Cert::subkeys.
Diffstat (limited to 'examples')
-rw-r--r--examples/guide-exploring-openpgp.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/guide-exploring-openpgp.rs b/examples/guide-exploring-openpgp.rs
index c4d15bf9..004c9899 100644
--- a/examples/guide-exploring-openpgp.rs
+++ b/examples/guide-exploring-openpgp.rs
@@ -60,10 +60,10 @@ fn main() {
}
// List subkeys.
- for (i, s) in cert.subkeys().enumerate() {
+ for (i, ka) in cert.keys().policy(None).skip(1).enumerate() {
println!("{}: Fingerprint: {}, {} self-signature(s), {} certification(s)",
- i, s.key().fingerprint(),
- s.self_signatures().len(),
- s.certifications().len());
+ i, ka.key().fingerprint(),
+ ka.component().self_signatures().len(),
+ ka.component().certifications().len());
}
}