Home GnuPG
Diffusion GnuPG d47e84946ee0

g10: Simplify code. Turn struct getkey_ctx_s.found_key into an argument
d47e84946ee0Unpublished

Unpublished Commit ยท Learn More

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

Description

g10: Simplify code. Turn struct getkey_ctx_s.found_key into an argument

* g10/getkey.c (struct getkey_ctx_s): Remove field found_key.
(lookup): Add argument ret_found_key.  If not NULL, set it to the
found key.  Update callers.
(pk_from_block): Add argument found_key.  Use it instead of
CTX->FOUND_KEY.  Update callers.
(finish_lookup): Return a KBNODE (the found key) instead of an int.
Don't set CTX->FOUND_KEY.  Return the found key instead.
  • Signed-off-by: Neal H. Walfield <neal@g10code.com>.

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Sep 9 2015, 9:04 PM
Parents
rGc110e186e07f: g10: Remove unused field struct getkey_ctx_s.kbpos.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rGd47e84946ee0: g10: Simplify code. Turn struct getkey_ctx_s.found_key into an argument (authored by Neal H. Walfield <neal@g10code.com>).Sep 16 2015, 3:15 PM