From d4082ff430afe670510d2c1c7ea66ee9ddcbe505 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 21 Jan 2019 14:06:51 +0100 Subject: 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 (cherry picked from commit 29929e65521279eabc98a67c766fe485057405a9) --- scd/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scd/app.c') diff --git a/scd/app.c b/scd/app.c index a82db26cd..c43057946 100644 --- a/scd/app.c +++ b/scd/app.c @@ -938,7 +938,7 @@ app_change_pin (app_t app, ctrl_t ctrl, const char *chvnostr, int reset_mode, } -/* Perform a VERIFY operation without doing anything lese. This may +/* Perform a VERIFY operation without doing anything else. This may be used to initialize a the PIN cache for long lasting other operations. Its use is highly application dependent. */ gpg_error_t -- cgit v1.2.3