Don't fail when a card errors on "get DO ARD", we could still find the card we're looking for
This commit is contained in:
parent
e9ecfea4cf
commit
405a2a1fc1
1 changed files with 20 additions and 13 deletions
|
@ -292,9 +292,11 @@ impl PcscClient {
|
||||||
// -- /debug: status --
|
// -- /debug: status --
|
||||||
|
|
||||||
if let Some(ident) = ident {
|
if let Some(ident) = ident {
|
||||||
let ard = PcscTxClient::application_related_data(
|
if let Ok(ard) =
|
||||||
|
PcscTxClient::application_related_data(
|
||||||
&mut txc,
|
&mut txc,
|
||||||
)?;
|
)
|
||||||
|
{
|
||||||
let aid = ard.application_id()?;
|
let aid = ard.application_id()?;
|
||||||
|
|
||||||
if aid.ident() == ident.to_ascii_uppercase() {
|
if aid.ident() == ident.to_ascii_uppercase() {
|
||||||
|
@ -315,6 +317,11 @@ impl PcscClient {
|
||||||
// FIXME: end transaction
|
// FIXME: end transaction
|
||||||
// txc.end();
|
// txc.end();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// couldn't read ARD for this card ...
|
||||||
|
// ignore and move on
|
||||||
|
continue;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// we want to return all cards
|
// we want to return all cards
|
||||||
store_card = true;
|
store_card = true;
|
||||||
|
|
Loading…
Reference in a new issue