diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-12-20 14:22:09 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-12-20 14:22:09 +0100 |
commit | f078f93025b517609d25ce2cb2ebc41a01d81190 (patch) | |
tree | 32766c92a0a6e7877b538d373cced9c9f0a97019 /net | |
parent | b3ba97146f534ac5cf67db7f72d8a633112d0a18 (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 'net')
-rw-r--r-- | net/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/src/lib.rs b/net/src/lib.rs index a7746727..8f91ce18 100644 --- a/net/src/lib.rs +++ b/net/src/lib.rs @@ -183,7 +183,7 @@ impl KeyServer { Some(armor::Kind::PublicKey))); match Cert::from_reader(r) { Ok(cert) => { - if cert.keys_all().any(|ka| { + if cert.keys().any(|ka| { KeyID::from(ka.key().fingerprint()) == keyid_want }) { |