pace card supports extended lengths. note that we really need a card driver which covers that

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@344 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-10-27 14:50:38 +00:00
parent 702644778d
commit c253da05b2
2 changed files with 4 additions and 4 deletions

View File

@@ -424,10 +424,6 @@ perform_PC_to_RDR_IccPowerOn(const __u8 *in, size_t inlen, __u8 **out, size_t *o
if (get_ef_card_access(card_in_slot[request->bSlot],
(u8 **) &ef_cardaccess, &ef_cardaccess_length) < 0) {
sc_error(ctx, "Could not get EF.CardAccess.");
} else {
/* All cards with PACE support extended length
* XXX this should better be done by the card driver */
card_in_slot[request->bSlot]->caps |= SC_CARD_CAP_APDU_EXT;
}
}
#endif

View File

@@ -247,6 +247,10 @@ int get_ef_card_access(sc_card_t *card,
goto err;
}
/* All cards with PACE support extended length
* XXX this should better be done by the card driver */
card->caps |= SC_CARD_CAP_APDU_EXT;
r = SC_SUCCESS;
err: