From f2f1db13b429de78745108a63f1ff7f21a4a3552 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 21 Jan 2020 12:36:21 +0100 Subject: openpgp: Change KeyIter to return KeyAmalgamations. - Change KeyIter to return KeyAmalgamations instead of Keys. - Given a `KeyAmalgamation`, it is possible to turn it into a `ValidKeyAmalgamation`. This is not possible with a `Key`. - With a `KeyAmalgamation`, it is still possible to query things about the certificate. --- store/src/backend/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'store/src/backend/mod.rs') diff --git a/store/src/backend/mod.rs b/store/src/backend/mod.rs index b9fc1a9a..412011b1 100644 --- a/store/src/backend/mod.rs +++ b/store/src/backend/mod.rs @@ -806,8 +806,8 @@ impl KeyServer { /// Keeps the mapping of (sub)KeyIDs to keys up-to-date. fn reindex_subkeys(c: &Connection, key_id: ID, cert: &Cert) -> Result<()> { - for key in cert.keys() { - let keyid = key.keyid().as_u64() + for ka in cert.keys() { + let keyid = ka.key().keyid().as_u64() .expect("computed keyid is valid"); let r = c.execute( -- cgit v1.2.3