mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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.
Signed-off-by: Werner Koch <wk@gnupg.org>
Backported-from-master: 44f977d0e3
This commit is contained in:
parent
88606cc484
commit
adf387b3f1
3 changed files with 5 additions and 10 deletions
|
@ -906,7 +906,7 @@ iso7816_read_binary_ext (int slot, int extended_mode,
|
|||
if (r_sw)
|
||||
*r_sw = sw;
|
||||
|
||||
if (*result && sw == SW_BAD_P0_P1)
|
||||
if (*result && (sw == SW_BAD_P0_P1 || sw == SW_INCORRECT_P0_P1))
|
||||
{
|
||||
/* Bad Parameter means that the offset is outside of the
|
||||
EF. When reading all data we take this as an indication
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue