Home GnuPG
Diffusion GnuPG adf387b3f1eb

scd: Improve reading of binary records.

Description

scd: Improve reading of binary records.

* scd/iso7816.c (iso7816_read_binary_ext): Handle the 0x6a86 SW the
same as 6b00.
* scd/apdu.c (apdu_get_atr): Modify debug messages.
* scd/app-p15.c (app_select_p15): Print FCI on error.
(read_p15_info): Clean up diag in presence of debug options.

Some cards return 6a86 instead of 6b00.

Backported-from-master: 44f977d0e332e77fb8a775c4837c00118bbe08cb

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jun 16 2021, 8:29 PM
Parents
rG88606cc484e4: scd:p15: Handle cards with bad encoded path objects.
Branches
Unknown
Tags
Unknown