mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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.
--
Cherry-picked master commit of:
7a5a4c4cac
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
e6be36ee88
commit
ffe31f405f
7 changed files with 97 additions and 1 deletions
|
@ -67,6 +67,7 @@ lock_app (app_t app, ctrl_t ctrl)
|
|||
}
|
||||
|
||||
apdu_set_progress_cb (app->slot, print_progress_line, ctrl);
|
||||
apdu_set_prompt_cb (app->slot, popup_prompt, ctrl);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -76,6 +77,7 @@ static void
|
|||
unlock_app (app_t app)
|
||||
{
|
||||
apdu_set_progress_cb (app->slot, NULL, NULL);
|
||||
apdu_set_prompt_cb (app->slot, NULL, NULL);
|
||||
|
||||
if (npth_mutex_unlock (&app->lock))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue