Changeset 1185 for trunk/src/ifd


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.

Location:
trunk/src/ifd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ifd/ifd-epass3k.c

    r1083 r1185  
    22 * OpenCT driver for ePass3000 device 
    33 * 
    4  * Copyright (C) 2008, EnterSafe <jingmin@FTsafe.com> 
     4 * Copyright (C) 2008, EnterSafe <dev@entersafe.com> 
    55 */ 
    66 
  • 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.