diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-01-21 12:36:21 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-01-21 14:51:25 +0100 |
commit | f2f1db13b429de78745108a63f1ff7f21a4a3552 (patch) | |
tree | 108ed79fd6f841510086059dd4ca1699d179239a /store | |
parent | 8897d08a3281c5744bc842be0dcba92439e84085 (diff) |
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.
Diffstat (limited to 'store')
-rw-r--r-- | store/src/backend/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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( |