- Timestamp:
- 08/13/10 18:46:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/icc_async.c
r2916 r2918 558 558 if (NeedsPTS && deprecated == 0) { 559 559 // PTSS PTS0 PTS1 PCK 560 BYTE req[] = { 0xFF, 0x10, 0x00, 0x00 }; //we currently do not support PTS2, standard guardtimes 560 BYTE req[6] = { 0xFF, 0x10, 0x00, 0x00 }; //we currently do not support PTS2, standard guardtimes or PTS3, 561 //but spare 2 bytes in arrayif card responds with it 561 562 req[1]=0x10 | reader->protocol_type; //PTS0 always flags PTS1 to be sent always 562 563 if (ATR_GetInterfaceByte (atr, 1, ATR_INTERFACE_BYTE_TA, &req[2]) != ATR_OK) //PTS1 563 564 req[2] = 0x11; //defaults FI and DI to 1 564 unsigned int len = sizeof(req);565 unsigned int len = 0; 565 566 call (SetRightParity (reader)); 566 567 ret = PPS_Exchange (reader, req, &len); … … 573 574 } 574 575 else 575 cs_ddump(req, 4,"PTS Failure, response:");576 cs_ddump(req,len,"PTS Failure, response:"); 576 577 } 577 578
Note:
See TracChangeset
for help on using the changeset viewer.