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/apdu.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/apdu.h')
-rw-r--r-- | scd/apdu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scd/apdu.h b/scd/apdu.h index 8a0d4bda8..8621ddc41 100644 --- a/scd/apdu.h +++ b/scd/apdu.h @@ -117,6 +117,7 @@ int apdu_connect (int slot); int apdu_disconnect (int slot); int apdu_set_progress_cb (int slot, gcry_handler_progress_t cb, void *cb_arg); +int apdu_set_prompt_cb (int slot, void (*cb) (void *, int), void *cb_arg); int apdu_reset (int slot); int apdu_get_status (int slot, int hang, unsigned int *status); |