Changeset 493


Ignore:
Timestamp:
Nov 3, 2009, 2:49:29 PM (10 years ago)
Author:
dingo35
Message:

Unique EMM got broken with optical changes in release 17

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/reader-seca.c

    r473 r493  
    9999  memset(reader[ridx].prid, 0xff, sizeof(reader[ridx].prid));
    100100  read_cmd(ins0e, NULL); // read unique id
    101   reader[ridx].hexserial[0]=0;
    102   reader[ridx].hexserial[1]=0;
    103   memcpy(reader[ridx].hexserial+2, cta_res+2, 6);
     101  memcpy(reader[ridx].hexserial, cta_res+2, 6);
    104102  serial = b2ll(5, cta_res+3) ;
    105103  cs_ri_log("type: seca, caid: %04X, serial: %llu, card: %s v%d.%d",
     
    207205      {
    208206    //first test if UA matches
    209     if (memcmp (reader[ridx].hexserial + 2, ep->emm + 3, 6)) {
    210         cs_log("EMM: Unique update did not match; EMM Serial:%02X%02X%02X%02X%02X%02X, Reader Serial:%s.", ep->emm[3], ep->emm[4], ep->emm[5], ep->emm[6], ep->emm[7], ep->emm[8], cs_hexdump (0, reader[ridx].hexserial + 2, 6));
     207    if (memcmp (reader[ridx].hexserial, ep->emm + 3, 6)) {
     208        cs_log("EMM: Unique update did not match; EMM Serial:%02X%02X%02X%02X%02X%02X, Reader Serial:%s.", ep->emm[3], ep->emm[4], ep->emm[5], ep->emm[6], ep->emm[7], ep->emm[8], cs_hexdump (0, reader[ridx].hexserial, 6));
    211209        return(0);
    212210    }
Note: See TracChangeset for help on using the changeset viewer.