]> the.earth.li Git - onak.git/commit
Provide key_fetch routine that will not search subkey fingerprints
authorJonathan McDowell <noodles@earth.li>
Fri, 17 Jan 2020 19:48:10 +0000 (19:48 +0000)
committerJonathan McDowell <noodles@earth.li>
Fri, 17 Jan 2020 19:48:10 +0000 (19:48 +0000)
commita2979c20e1ab2d52e3a961ac7dad45fee9d6345a
tree355acb2714064545a36dfc0866eb456920834097
parent00e37c36f214bf9d2e9794d3089e64522a6275a2
Provide key_fetch routine that will not search subkey fingerprints

We have *_key_fetch_fp to search for keys by fingerprint, but that
includes subkeys. While unlikely a subkey could be bound to multiple
certification primary keys, resulting in multiple keys being returned
for a fingerprint query. Provide a plain *_fetch_key that only searches
primary keys and is thus guaranteed to return at most one key.
15 files changed:
keydb.h
keydb/keyd.c
keydb/keyd.h
keydb/keydb.c
keydb/keydb_db4.c
keydb/keydb_dynamic.c
keydb/keydb_file.c
keydb/keydb_fs.c
keydb/keydb_hkp.c
keydb/keydb_keyd.c
keydb/keydb_keyring.c
keydb/keydb_pg.c
keydb/keydb_stacked.c
onak.c
t/all-095-get-subkey-fingerprint.t [new file with mode: 0755]