aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-09-04 08:43:18 +0000
committerWerner Koch <[email protected]>2019-09-04 08:45:29 +0000
commit2cdea776cd6db13c8f4ff45c89bd3292f216b186 (patch)
treee62e6a1cd802731de17b41fa950742d94151b8c5 /scd/app-common.h
parentdoc: Fix grammar error. (diff)
downloadgnupg-2cdea776cd6db13c8f4ff45c89bd3292f216b186.tar.gz
gnupg-2cdea776cd6db13c8f4ff45c89bd3292f216b186.zip
scd: Use a macro for the flag parameter of learn_status.
* scd/app-common.h (APP_LEARN_FLAG_KEYPAIRINFO): New flag macro.. * scd/command.c (cmd_learn): Pass that flag instead of a plain number. * scd/app-nks.c (do_learn_status_core): Use new flag. * scd/app-p15.c (do_learn_status): Ditto. * scd/app-piv.c (do_learn_status): Ditto. * scd/app-sc-hsm.c (do_learn_status): Ditto. * scd/app.c (app_write_learn_status): Ditto. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/app-common.h')
-rw-r--r--scd/app-common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/scd/app-common.h b/scd/app-common.h
index 5866c9b32..9fadafd6a 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -39,9 +39,11 @@
/* Flags used with app_readkey. */
#define APP_READKEY_FLAG_INFO 1 /* Send also a KEYPAIRINFO line. */
-/* Bit flags set by the decipher function into R_INFO. */
+/* Flags set by the decipher function into R_INFO. */
#define APP_DECIPHER_INFO_NOPAD 1 /* Padding has been removed. */
+/* Flags used by the app_write_learn_status. */
+#define APP_LEARN_FLAG_KEYPAIRINFO 1 /* Return only keypair infos. */
/* List of supported card types. Generic is the usual ISO7817-4
* compliant card. More specific card or token versions can be given