scd: Add new command: KEYINFO.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 25 Apr 2019 05:49:49 +0000 (14:49 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 25 Apr 2019 05:49:49 +0000 (14:49 +0900)
commit874bc970ba6ec243ff474ef090242e0f7be6a7bc
treeb4c9814832ad8a1438ed708616a0c6671a05480f
parentd5443b918dd3b8ccb3c4fdd8fe9d70d84aa312ff
scd: Add new command: KEYINFO.

* scd/app-common.h (struct app_ctx_s): Add with_keygrip function.
* scd/app-openpgp.c (do_with_keygrip): New.
* scd/app.c (app_do_with_keygrip): New.
* scd/command.c (cmd_keyinfo): New.
(send_keyinfo): New.

--

KEYGRIP_ACTION_LOOKUP is not yet used.  It will be used for directly
asking PK* action to determine an APP.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/app-common.h
scd/app-openpgp.c
scd/app.c
scd/command.c
scd/scdaemon.h