Changeset 4132


Ignore:
Timestamp:
12/17/10 09:46:50 (13 years ago)
Author:
dingo35
Message:

Partly reversing 3794 since deleting prototypes and introducing wrong datatypes is not the way to go

Location:
trunk/csctapi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/csctapi/icc_async.c

    r4131 r4132  
    948948    if ((reader->protocol_type == ATR_PROTOCOL_TYPE_T1) && (reader->ifsc != DEFAULT_IFSC)) {
    949949        unsigned char rsp[CTA_RES_LEN];
    950         unsigned short lr=0;
     950        unsigned short * lr;
    951951        unsigned char tmp[] = { 0x21, 0xC1, 0x01, 0x00, 0x00 };
    952952        tmp[3] = reader->ifsc; // Information Field size
    953953        tmp[4] = reader->ifsc ^ 0xE1;
    954         Protocol_T1_Command (reader, tmp, sizeof(tmp), rsp, &lr);
     954        Protocol_T1_Command (reader, tmp, sizeof(tmp), rsp, lr);
    955955    }
    956956 return OK;
  • trunk/csctapi/ifd_sci.h

    r3794 r4132  
    77#include "../globals.h"
    88#include "atr.h"
    9 int Sci_WriteSettings (struct s_reader * reader, BYTE T, unsigned long fs, unsigned long ETU, unsigned long WWT, unsigned long BWT, unsigned long CWT, unsigned long EGT, unsigned char P, unsigned char I);
    109int Sci_GetStatus (struct s_reader *reader, int * status);
    1110int Sci_Reset (struct s_reader *reader, ATR * atr);
  • trunk/csctapi/protocol_t0.h

    r3794 r4132  
    3232int Protocol_T0_Command (struct s_reader *reader, unsigned char * command, unsigned short command_len, unsigned char * rsp, unsigned short * lr);
    3333int Protocol_T14_ExchangeTPDU (struct s_reader *reader, unsigned char * command, unsigned short command_len, unsigned char * rsp, unsigned short * lr);
    34 int Protocol_T1_Command (struct s_reader *reader, unsigned char * command, unsigned short command_len, unsigned char * rsp, unsigned short * lr);
    3534
    3635#endif /* _PROTOCOL_T0_ */
Note: See TracChangeset for help on using the changeset viewer.