aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-01-21 13:06:51 +0000
committerWerner Koch <[email protected]>2019-01-22 09:14:55 +0000
commitd4082ff430afe670510d2c1c7ea66ee9ddcbe505 (patch)
tree24c59a9d37505e94b772f3eba252adf16bc4eb7a /scd/app-common.h
parentscd: One new and one improved 7816 function. (diff)
downloadgnupg-d4082ff430afe670510d2c1c7ea66ee9ddcbe505.tar.gz
gnupg-d4082ff430afe670510d2c1c7ea66ee9ddcbe505.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]> (cherry picked from commit 29929e65521279eabc98a67c766fe485057405a9)
Diffstat (limited to '')
-rw-r--r--scd/app-common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/scd/app-common.h b/scd/app-common.h
index 38e6cc609..37e3c605d 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -26,8 +26,9 @@
#include <ksba.h>
-#define APP_CHANGE_FLAG_RESET 1
-#define APP_CHANGE_FLAG_NULLPIN 2
+#define APP_CHANGE_FLAG_RESET 1 /* PIN Reset mode. */
+#define APP_CHANGE_FLAG_NULLPIN 2 /* NULL PIN mode. */
+#define APP_CHANGE_FLAG_CLEAR 4 /* Clear the given PIN. */
/* Bit flags set by the decipher function into R_INFO. */
#define APP_DECIPHER_INFO_NOPAD 1 /* Padding has been removed. */