diff options
author | Neal H. Walfield <[email protected]> | 2015-09-09 19:04:57 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2015-09-16 13:15:18 +0000 |
commit | d47e84946ee010917cfc3501062721b74afbb771 (patch) | |
tree | 289287e93cc16564a768e9f6acd48c623de6507d /dirmngr/server.c | |
parent | g10: Remove unused field struct getkey_ctx_s.kbpos. (diff) | |
download | gnupg-d47e84946ee010917cfc3501062721b74afbb771.tar.gz gnupg-d47e84946ee010917cfc3501062721b74afbb771.zip |
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 <[email protected]>.
Diffstat (limited to 'dirmngr/server.c')
0 files changed, 0 insertions, 0 deletions