Ignore:
Timestamp:
02/24/10 07:40:32 (2 years ago)
Author:
aj
Message:

Xiaoshuo Wu/Entersafe?:
make ePass3000 USB key work with OpenCT. We found out that new ePass3000
hardware returns data instead of 61XX(to indicates the number of response
bytes still available), so we modified OpenCT to handle it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ifd/proto-t0.c

    r964 r1185  
    160160        if (lc) { 
    161161                t0->state = SENDING; 
    162                 if ((rc = t0_xcv(prot, sbuf, slen, rbuf, 2)) < 0) 
     162                if ((rc = t0_xcv(prot, sbuf, slen, rbuf, rlen)) < 0) 
    163163                        return rc; 
     164 
     165                if( rc > 2 ) { 
     166                        //not 61XX but the data 
     167                        goto done; 
     168                } 
    164169 
    165170                /* Can this happen? */ 
Note: See TracChangeset for help on using the changeset viewer.