mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
scd: Make SERIALNO --all work correctly and use it.
* scd/app.c (maybe_switch_app): Factor reselect code out to ... (run_reselect): new. (app_write_learn_status): Tweak diagnostics. (app_do_with_keygrip): Run reselect if a card has more than one switchable application. * agent/call-scd.c (agent_card_serialno): Ditto. * tools/card-call-scd.c (start_agent): Use option --all with SERIALNO. (scd_serialno): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
15028627a1
commit
0e48aa0849
5 changed files with 94 additions and 57 deletions
|
@ -764,13 +764,13 @@ get_dispserialno (app_t app, int failmode)
|
|||
|
||||
|
||||
/* The verify command can be used to retrieve the security status of
|
||||
* the card. Given the PIN name (e.g. "PIV.80" for thge application
|
||||
* the card. Given the PIN name (e.g. "PIV.80" for the application
|
||||
* pin, a status is returned:
|
||||
*
|
||||
* -1 = Error retrieving the data,
|
||||
* -2 = No such PIN,
|
||||
* -3 = PIN blocked,
|
||||
* -5 = Verify still valid,
|
||||
* -5 = Verified and still valid,
|
||||
* n >= 0 = Number of verification attempts left.
|
||||
*/
|
||||
static int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue