Changeset 1179 for trunk


Ignore:
Timestamp:
01/21/10 10:28:22 (2 years ago)
Author:
s
Message:

fix: Le (APDU_CASE_2S) for get_do_info in accordance with Windows driver

File:
1 edited

Legend:

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

    r1174 r1179  
    254254                        // Rutoken Bug!!! 
    255255                        ifd_debug(6, "case 2"); 
    256                         if(iso.ins == 0xa4){ 
    257                                 hdr[4] = 0x20; 
     256                        /* select file */ 
     257                        if (iso.cla == 0 && iso.ins == 0xa4) 
    258258                                iso.le = 0x20; 
    259                         } 
    260                         else{ 
    261                                 hdr[4] = iso.le; 
    262                         } 
     259                        /* get_do_info */ 
     260                        else if (iso.cla == 0x80 && iso.ins == 0x30) 
     261                                iso.le = 0xff; 
     262                        hdr[4] = iso.le; 
    263263                        break; 
    264264                case    IFD_APDU_CASE_3S: 
Note: See TracChangeset for help on using the changeset viewer.