Home GnuPG
Diffusion GnuPG 9acbeac23668

kbx: Change skipfnc's prototype so that we can provide all information.
9acbeac23668Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

kbx: Change skipfnc's prototype so that we can provide all information.

* kbx/keybox-search-desc.h (struct keydb_search_desc.skipfnc): Change
third parameter to be the index of the user id packet in the keyblock
rather than the packet itself.  Update users.

The keybox code doesn't work directly with keyblocks. As such, the
matched user packet is not readily available to pass to
DESC[n].SKIPFNC. But, we do know the index of the user id packet that
matched. Thus, pass that instead. If the skip function needs the
user id packet, it can use the key id to look up the key block and
find the appropriate packet.

  • Signed-off-by: Neal H. Walfield <neal@g10code.com>.

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Sep 14 2015, 11:27 AM
Parents
rG83e17ab1b4cf: g10: Remove unused prototype (get_pubkey_byfpr).
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rG9acbeac23668: kbx: Change skipfnc's prototype so that we can provide all information. (authored by Neal H. Walfield <neal@g10code.com>).Sep 16 2015, 3:15 PM