g10: Select a secret key by checking availability under gpg-agent.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 26 Sep 2017 02:02:05 +0000 (11:02 +0900)
committerWerner Koch <wk@gnupg.org>
Thu, 22 Feb 2018 09:42:42 +0000 (10:42 +0100)
commit88e766d3915c2919e9968148ebb30463d4a673e4
treeb3bf9879b24031c872180ffeb6e8a7300c2762f7
parentcf006cbf733889c20ee313ff93fce838ca77229e
g10: Select a secret key by checking availability under gpg-agent.

* g10/getkey.c (finish_lookup): Add WANT_SECRET argument to confirm
by agent_probe_secret_key.
(get_pubkey_fromfile, lookup): Supply WANT_SECRET argument.

--

GnuPG-bug-id: 1967
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(cherry picked from commit 0a76611294998ae34b9d9ebde484ef8ad3a9a3a6)
g10/getkey.c