- 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:
11
ccid/usb.c
11
ccid/usb.c
@@ -58,7 +58,7 @@ static int debug = 0;
|
||||
static int dohid = 0;
|
||||
static int doint = 0;
|
||||
static int dotest = 0;
|
||||
int usb_reader_num = 0;
|
||||
static int usb_reader_num = -1;
|
||||
|
||||
static const struct option options[] = {
|
||||
/*{ "hid", no_argument, &dohid, 1 },*/
|
||||
@@ -1031,11 +1031,6 @@ static void *ccid (void *param)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (dotest) {
|
||||
sleep(2);
|
||||
ccid_testpace();
|
||||
}
|
||||
|
||||
do {
|
||||
|
||||
/* original LinuxThreads cancelation didn't work right
|
||||
@@ -1802,6 +1797,10 @@ main (int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (dotest) {
|
||||
return ccid_testpace();
|
||||
}
|
||||
|
||||
fd = init_device ();
|
||||
if (fd < 0)
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user