diff options
| author | Werner Koch <[email protected]> | 2019-01-21 13:06:51 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2019-01-21 13:06:51 +0000 |
| commit | 29929e65521279eabc98a67c766fe485057405a9 (patch) | |
| tree | f26431890716048aef0f43d85efa3563046e7f15 /scd/scdaemon.h | |
| parent | scd: Add very basic support for PIV cards. (diff) | |
| download | gnupg-29929e65521279eabc98a67c766fe485057405a9.tar.gz gnupg-29929e65521279eabc98a67c766fe485057405a9.zip | |
scd: Add option --clear to PASSWD.
* scd/command.c (cmd_passwd): Add option --clear.
(send_status_printf): New.
* scd/app-common.h (APP_CHANGE_FLAG_CLEAR): New.
* scd/app-nks.c (do_change_pin): Return an error if that option is
used.
* scd/app-openpgp.c (do_change_pin): Ditto.
--
Card application may support this option to clear the PIN verification
status of a specific PIN.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/scdaemon.h')
| -rw-r--r-- | scd/scdaemon.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scd/scdaemon.h b/scd/scdaemon.h index 238e6a8fd..73589ade8 100644 --- a/scd/scdaemon.h +++ b/scd/scdaemon.h @@ -123,6 +123,9 @@ int scd_command_handler (ctrl_t, int); void send_status_info (ctrl_t ctrl, const char *keyword, ...) GPGRT_ATTR_SENTINEL(1); void send_status_direct (ctrl_t ctrl, const char *keyword, const char *args); +gpg_error_t send_status_printf (ctrl_t ctrl, const char *keyword, + const char *format, ...) GPGRT_ATTR_PRINTF(3,4); + void popup_prompt (void *opaque, int on); void send_client_notifications (app_t app, int removal); void scd_kick_the_loop (void); |
