summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-03-14 09:20:10 +0100
committerNeal H. Walfield <neal@pep.foundation>2019-03-14 14:56:47 +0100
commit1434843469109127f41c5dbd8aacf5400c537759 (patch)
tree0ca324cad8a486def769000eb460a13bd51473c4 /store
parent6bea117391c1813e956e384c6638b7b0311d8d7c (diff)
openpgp: Replace TPK::select_keys with an iterator.
- TPK::select_keys mixes iterating and filtering. - Make KeyIter an implicit builder, which supports convenient filtering. - Provide a convenience function to key an iterator with a reasonable filter default.
Diffstat (limited to 'store')
-rw-r--r--store/src/backend/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/store/src/backend/mod.rs b/store/src/backend/mod.rs
index 39db1279..8a488028 100644
--- a/store/src/backend/mod.rs
+++ b/store/src/backend/mod.rs
@@ -794,7 +794,7 @@ impl KeyServer {
/// Keeps the mapping of (sub)KeyIDs to keys up-to-date.
fn reindex_subkeys(c: &Connection, key_id: ID, tpk: &TPK) -> Result<()> {
- for (_, _, key) in tpk.keys() {
+ for (_, _, key) in tpk.keys_all() {
let keyid = key.fingerprint().to_keyid().as_u64()
.expect("computed keyid is valid");