summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src/parse/stream.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-12-20 14:22:09 +0100
committerNeal H. Walfield <neal@pep.foundation>2019-12-20 14:22:09 +0100
commitf078f93025b517609d25ce2cb2ebc41a01d81190 (patch)
tree32766c92a0a6e7877b538d373cced9c9f0a97019 /openpgp-ffi/src/parse/stream.rs
parentb3ba97146f534ac5cf67db7f72d8a633112d0a18 (diff)
openpgp: Simplify key iteration interface.
- Cert::keys_valid() is just a short-cut for Cert::keys_all().alive().revoked(false). - Remove Cert::keys_valid() and rename Cert::keys_all() to Cert::keys().
Diffstat (limited to 'openpgp-ffi/src/parse/stream.rs')
-rw-r--r--openpgp-ffi/src/parse/stream.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/parse/stream.rs b/openpgp-ffi/src/parse/stream.rs
index f3b5b32f..3478b141 100644
--- a/openpgp-ffi/src/parse/stream.rs
+++ b/openpgp-ffi/src/parse/stream.rs
@@ -816,7 +816,7 @@ impl DecryptionHelper for DHelper {
/// pgp_pkesk_t pkesk = pkesks[i];
/// pgp_keyid_t keyid = pgp_pkesk_recipient (pkesk);
///
-/// pgp_cert_key_iter_t key_iter = pgp_cert_key_iter_all (cookie->key);
+/// pgp_cert_key_iter_t key_iter = pgp_cert_key_iter (cookie->key);
/// pgp_key_t key;
/// while ((key = pgp_cert_key_iter_next (key_iter, NULL, NULL))) {
/// pgp_keyid_t this_keyid = pgp_key_keyid (key);