mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
d803b3bb3c
commit
c8e62965bc
3 changed files with 39 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue