]> the.earth.li Git - onak.git/commitdiff
Extend database backends to support fetching by key fingerprint
authorJonathan McDowell <noodles@earth.li>
Tue, 5 Nov 2013 00:56:31 +0000 (16:56 -0800)
committerJonathan McDowell <noodles@earth.li>
Tue, 5 Nov 2013 01:11:43 +0000 (17:11 -0800)
Up until now the database backends have supported fetching a specific
key only by 64 bit key id. We should really have been using the
fingerprint where possible. Add a new backend function, fetch_key_fp,
to allow us to fetch using the fingerprint, and a generic implementation
that just truncates the fingerprint to get the 64 bit key id (valid for
v4 only). The HKP, keyd and dynamic backends gain full passthrough
support for retrieval by fingerprint with this commit.


No differences found