aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-09-04 10:08:07 +0000
committerWerner Koch <[email protected]>2019-09-04 10:08:07 +0000
commit5cf5a04bae03d622a42753735c60dfab3b24ade8 (patch)
tree7c404442c779861db16ee7a41e2180cdd85adb9d /scd/app-common.h
parentscd: Use a macro for the flag parameter of learn_status. (diff)
downloadgnupg-5cf5a04bae03d622a42753735c60dfab3b24ade8.tar.gz
gnupg-5cf5a04bae03d622a42753735c60dfab3b24ade8.zip
scd: Add option --multi to the LEARN command.
* scd/app-common.h (APP_LEARN_FLAG_MULTI): New. * scd/command.c (cmd_learn): Add option --multi. * scd/app.c (app_write_learn_status): Factor some code out to ... (write_learn_status_core): new. (app_write_learn_status): Implement flag --multi. -- This new option is intended to return information about all active applications of the current card. Thus if a "SERIALNO openpgp" and a "SERIALNO piv" has been done in a session the command "LEARN --force --multi" returns information about both applications. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/app-common.h')
-rw-r--r--scd/app-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scd/app-common.h b/scd/app-common.h
index 9fadafd6a..87f63bb7e 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -44,6 +44,8 @@
/* Flags used by the app_write_learn_status. */
#define APP_LEARN_FLAG_KEYPAIRINFO 1 /* Return only keypair infos. */
+#define APP_LEARN_FLAG_MULTI 2 /* Return info for all apps. */
+
/* List of supported card types. Generic is the usual ISO7817-4
* compliant card. More specific card or token versions can be given