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)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 26 Sep 2017 02:02:05 +0000 (11:02 +0900)
commit0a76611294998ae34b9d9ebde484ef8ad3a9a3a6
treeb37a6ab19c82282ce887b9de87d14f2f275ec560
parent9f5e50e7c85aa8b847d38010241ed570ac114fc3
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>
g10/getkey.c