- 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:
16
ccid/ccid.c
16
ccid/ccid.c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user