- pace-testing is not done in threads anymore, program exits when test is finished

- bugfix in debug_ossl
- more generic aproach to select EF.CardAccess
- EF.CardAccess is read sequencially, to get a correct send sequence counter


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@42 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-03-05 09:53:44 +00:00
parent 69b8e3fc65
commit d91b45c47a
5 changed files with 52 additions and 27 deletions

View File

@@ -1279,7 +1279,19 @@ int ccid_state_changed(RDR_to_PC_NotifySlotChange_t **slotchange, int timeout)
return 0;
}
void ccid_testpace()
int ccid_testpace()
{
pace_test(ctx, card_in_slot[0]);
int i;
for (i = 0; i < sizeof *card_in_slot; i++) {
if (!card_in_slot[i]
&& (sc_detect_card_presence(reader, 0) & SC_SLOT_CARD_PRESENT)) {
sc_connect_card(reader, i, &card_in_slot[i]);
}
if (sc_card_valid(card_in_slot[i])) {
return pace_test(ctx, card_in_slot[i]);
}
}
return SC_ERROR_SLOT_NOT_FOUND;
}