Home GnuPG
Diffusion GnuPG c8e62965bc90

scd: Return a stable list with "getinfo card_list".

Description

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>

Details

Provenance
wernerAuthored on Jun 25 2019, 9:23 AM
Parents
rGd803b3bb3c08: scd: Add an re-select mechanism to switch apps.
Branches
Unknown
Tags
Unknown