scd: Support "acknowledge button" feature.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 11 Oct 2018 06:41:49 +0000 (15:41 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 11 Oct 2018 06:41:49 +0000 (15:41 +0900)
commit7a5a4c4cac8709f7c413e94cd0b40f4123baa1e5
treee5ee6d0c03e2495bd2c955905e8c83749095efc7
parent827529339a4854886dbb5625238e7e01013efdcd
scd: Support "acknowledge button" feature.

* scd/apdu.c (set_prompt_cb): New member function.
(set_prompt_cb_ccid_reader): New function.
(open_ccid_reader): Initialize with set_prompt_cb_ccid_reader.
(apdu_set_prompt_cb): New.
* scd/app.c (lock_app, unlock_app): Add call to apdu_set_prompt_cb.
* ccid-driver.c (ccid_set_prompt_cb): New.
(bulk_in): Call ->prompt_cb when timer extension.
* scd/command.c (popup_prompt): New.

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