Changeset 1158 for trunk/src/ifd


Ignore:
Timestamp:
07/16/09 11:55:27 (3 years ago)
Author:
ludovic.rousseau
Message:

ccid_open_usb(): do not complain if card initialization features are
missing for an ICCD device

Thanks to Aleksey Samsonov for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-July/012313.html

File:
1 edited

Legend:

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

    r1137 r1158  
    728728 * frequency or the baud rate must be made via manufacturer proprietary 
    729729 * PC_to_RDR_Escape command." - ccid class specification v1.00 
     730 *  
     731 * "The value of the lower word (=0840) indicates that the host will only 
     732 * send requests that are valid for the USB-ICC." - ISO/IEC 7816-12:2005 
     733 * 7.2/Table 8 
    730734 */ 
    731         if (~ccid.dwFeatures & (0x10 | 0x20)) { 
     735        if ((ccid.dwFeatures & 0xFFFF) != 0x0840 
     736            && ~ccid.dwFeatures & (0x10 | 0x20)) { 
    732737                ct_error("ccid: required card initialization features missing"); 
    733738                free(st); 
Note: See TracChangeset for help on using the changeset viewer.