aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-06-25 07:23:38 +0000
committerWerner Koch <[email protected]>2019-06-25 07:23:38 +0000
commitc8e62965bc90eabff5c4b7cb349bd8e41584c01b (patch)
tree1f01486a5ec2780a13b9b03c5344b9270a43db4f /scd/app-common.h
parentscd: Add an re-select mechanism to switch apps. (diff)
downloadgnupg-c8e62965bc90eabff5c4b7cb349bd8e41584c01b.tar.gz
gnupg-c8e62965bc90eabff5c4b7cb349bd8e41584c01b.zip
scd: Return a stable list with "getinfo card_list".
* scd/app.c (compare_card_list_items): New. (app_send_card_list): Sort the card objects by slot. -- This is required so that in gpg-card a "list N" command always returns the expected card. Sorting by slot should be sufficient. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/app-common.h')
-rw-r--r--scd/app-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app-common.h b/scd/app-common.h
index 97b9b39ef..460046f89 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -223,7 +223,7 @@ const char *strcardtype (cardtype_t t);
const char *strapptype (apptype_t t);
void app_update_priority_list (const char *arg);
-void app_send_card_list (ctrl_t ctrl);
+gpg_error_t app_send_card_list (ctrl_t ctrl);
char *card_get_serialno (card_t card);
char *app_get_serialno (app_t app);