agent: Factor out the getpin interaction.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 19 Feb 2019 02:55:55 +0000 (11:55 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 19 Feb 2019 02:55:55 +0000 (11:55 +0900)
commitada797f477f923bee36d67c8e49f728ae7adb9e9
tree64f42a6e19533ecbcbc20dae17dd962190631ed6
parent3cbdf896e6919333b5423001ab58c01a04363386
agent: Factor out the getpin interaction.

* agent/call-pinentry.c (do_getpin): New.
(agent_askpin, agent_get_passphrase): Use do_getpin.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
agent/call-pinentry.c