summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-02-06 14:15:10 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-02-06 14:15:10 +0100
commitd183e12a3231e4c505f5f2cf48b6c1f881ad258a (patch)
treeaffb4e4c0acc3bce3d14adba627f5193c166bc32 /examples
parentc8eb94375a38e5606441a9e86d402442662ffb02 (diff)
openpgp: Rename ComponentBinding to ComponentBundle, etc.
- Likewise KeyBinding, UserIDBinding, UserAttributeBinding, UnknownBinding, etc. - Reason: a self-signature on a component is a binding, but revocations and TPSes are not bindings. - Consistently call collections of components and associated signatures bundles now. Likewise for fields, methods. - Fixes #425.
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 05a777e4..6d905b9e 100644
--- a/examples/guide-exploring-openpgp.rs
+++ b/examples/guide-exploring-openpgp.rs
@@ -58,15 +58,15 @@ fn main() {
for (i, ca) in cert.userids().set_policy(p, None).enumerate() {
println!("{}: UID: {}, {} self-signature(s), {} certification(s)",
i, ca.userid(),
- ca.binding().self_signatures().len(),
- ca.binding().certifications().len());
+ ca.bundle().self_signatures().len(),
+ ca.bundle().certifications().len());
}
// List subkeys.
for (i, ka) in cert.keys().set_policy(p, None).skip(1).enumerate() {
println!("{}: Fingerprint: {}, {} self-signature(s), {} certification(s)",
i, ka.key().fingerprint(),
- ka.binding().self_signatures().len(),
- ka.binding().certifications().len());
+ ka.bundle().self_signatures().len(),
+ ka.bundle().certifications().len());
}
}