diff options
author | NIIBE Yutaka <[email protected]> | 2018-10-11 06:41:49 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2018-10-11 06:41:49 +0000 |
commit | 7a5a4c4cac8709f7c413e94cd0b40f4123baa1e5 (patch) | |
tree | e5ee6d0c03e2495bd2c955905e8c83749095efc7 /scd/ccid-driver.h | |
parent | agent: Support --ack option for POPUPPINPADPROMPT. (diff) | |
download | gnupg-7a5a4c4cac8709f7c413e94cd0b40f4123baa1e5.tar.gz gnupg-7a5a4c4cac8709f7c413e94cd0b40f4123baa1e5.zip |
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 <[email protected]>
Diffstat (limited to 'scd/ccid-driver.h')
-rw-r--r-- | scd/ccid-driver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scd/ccid-driver.h b/scd/ccid-driver.h index c31c25fa7..1550b3eba 100644 --- a/scd/ccid-driver.h +++ b/scd/ccid-driver.h @@ -126,6 +126,8 @@ int ccid_open_reader (const char *spec_reader_name, int ccid_set_progress_cb (ccid_driver_t handle, void (*cb)(void *, const char *, int, int, int), void *cb_arg); +int ccid_set_prompt_cb (ccid_driver_t handle, void (*cb)(void *, int), + void *cb_arg); int ccid_shutdown_reader (ccid_driver_t handle); int ccid_close_reader (ccid_driver_t handle); int ccid_get_atr (ccid_driver_t handle, |