Changeset 1635


Ignore:
Timestamp:
02/20/10 22:41:37 (11 years ago)
Author:
landlord
Message:

Fill init_history with useful entitlement info for dre, seca and videoguard2 card reader

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/reader-dre.c

    r1399 r1635  
    106106
    107107    if (pbm[0] == 0xff)
    108       cs_log ("[dre-reader] no active packages");
     108      cs_ri_log ("[dre-reader] no active packages");
    109109    else
    110110      for (i = 0; i < 32; i++)
     
    129129      int endmonth = temp->tm_mon + 1;
    130130      int endday = temp->tm_mday;
    131       cs_log ("[dre-reader] active package %i valid from %04i/%02i/%02i to %04i/%02i/%02i", i, startyear, startmonth, startday,
     131      cs_ri_log ("[dre-reader] active package %i valid from %04i/%02i/%02i to %04i/%02i/%02i", i, startyear, startmonth, startday,
    132132          endyear, endmonth, endday);
    133133    }
     
    233233
    234234  //cs_ri_log("[dre-reader] type: DRE Crypt, caid: %04X, serial: %llu, card: v%x",
    235   cs_log ("[dre-reader] type: DRE Crypt, caid: %04X, serial: %s, dre id: %i%i%i%08i, geocode %i, card: %s v%i.%i",
     235  cs_ri_log ("[dre-reader] type: DRE Crypt, caid: %04X, serial: %s, dre id: %i%i%i%08i, geocode %i, card: %s v%i.%i",
    236236      reader[ridx].caid[0], cs_hexdump (0, reader[ridx].hexserial + 2, 4), dre_chksum, provider - 16,
    237237      major_version + 1, low_dre_id, geocode, card, major_version, minor_version);
    238   cs_log ("[dre-reader] Provider name:%s.", provname);
     238  cs_ri_log ("[dre-reader] Provider name:%s.", provname);
    239239
    240240
     
    242242  memcpy (reader[ridx].sa[0], reader[ridx].hexserial + 2, 1);   //copy first byte of unique address also in shared address, because we dont know what it is...
    243243
    244   cs_log ("[dre-reader] SA = %02X%02X%02X%02X, UA = %s", reader[ridx].sa[0][0], reader[ridx].sa[0][1], reader[ridx].sa[0][2],
     244  cs_ri_log ("[dre-reader] SA = %02X%02X%02X%02X, UA = %s", reader[ridx].sa[0][0], reader[ridx].sa[0][1], reader[ridx].sa[0][2],
    245245      reader[ridx].sa[0][3], cs_hexdump (0, reader[ridx].hexserial + 2, 4));
    246246
  • trunk/reader-seca.c

    r1399 r1635  
    5050  l_name[0]=(l_name[8]) ? ',' : 0;
    5151  reader[ridx].availkeys[i][0]=valid; //misusing availkeys to register validity of provider
    52   cs_log("[seca-reader] provider: %d, valid: %i%s, expiry date: %4d/%02d/%02d",
     52  cs_ri_log("[seca-reader] provider: %d, valid: %i%s, expiry date: %4d/%02d/%02d",
    5353         i+1, valid,l_name, year, month, day);
    5454  memcpy(&reader[ridx].sa[i][0], cta_res+18, 4);
    5555  if (valid==1) //if not expired
    56     cs_log("[seca-reader] SA: %s", cs_hexdump(0, cta_res+18, 4));
    57 //    cs_log("[seca-reader] SA: %02X%02X%02X%02X.",cta_res[18],cta_res[19],cta_res[20],cta_res[21]);
     56    cs_ri_log("[seca-reader] SA: %s", cs_hexdump(0, cta_res+18, 4));
    5857  return OK;
    5958}
     
    116115  if( cfg->ulparent != 0 ){
    117116      write_cmd(ins30, ins30data);
    118       cs_log("[seca-reader] ins30_answer: %02x%02x",cta_res[0], cta_res[1]);
     117      cs_ri_log("[seca-reader] ins30_answer: %02x%02x",cta_res[0], cta_res[1]);
    119118  }else {
    120       cs_log("[seca-reader] parental locked");
     119      cs_ri_log("[seca-reader] parental locked");
    121120  }
    122121  cs_log("[seca-reader] ready for requests");
     
    256255    switch (cta_res[0]) {
    257256    case 0x04:
    258       cs_log ("[seca-reader] no PBM for provider %i", prov + 1);
     257      cs_ri_log ("[seca-reader] no PBM for provider %i", prov + 1);
    259258      break;
    260259    case 0x83:
    261260      memcpy (pbm, cta_res + 1, 8);
    262       cs_log ("[seca-reader] PBM for provider %i: %s", prov + 1, cs_hexdump (0, pbm, 8));
     261      cs_ri_log ("[seca-reader] PBM for provider %i: %s", prov + 1, cs_hexdump (0, pbm, 8));
    263262      break;
    264263    default:
  • trunk/reader-videoguard2.c

    r1597 r1635  
    657657    int y,m,d,H,M,S;
    658658    rev_date_calc(&cta_res[4],&y,&m,&d,&H,&M,&S);
    659     cs_log("[videoguard2-reader] tier: %02x%02x, expiry date: %04d/%02d/%02d-%02d:%02d:%02d",cta_res[2],cta_res[3],y,m,d,H,M,S);
     659    cs_ri_log("[videoguard2-reader] tier: %02x%02x, expiry date: %04d/%02d/%02d-%02d:%02d:%02d",cta_res[2],cta_res[3],y,m,d,H,M,S);
    660660    }
    661661}
     
    683683    if ((atr_size == sizeof (atr_bskyb)) && (memcmp (atr, atr_bskyb, atr_size) == 0))
    684684    {
    685         cs_log("[videoguard2-reader] type: VideoGuard BSkyB");
     685        cs_ri_log("[videoguard2-reader] type: VideoGuard BSkyB");
    686686        /* BSkyB seems to need one additionnal byte in the serial communication... */
    687687        io_serial_need_dummy_char = 1;
     
    690690    else if ((atr_size == sizeof (atr_bskyb_new)) && (memcmp (atr, atr_bskyb_new, atr_size) == 0))
    691691    {
    692         cs_log("[videoguard2-reader] type: VideoGuard BSkyB - New");
     692        cs_ri_log("[videoguard2-reader] type: VideoGuard BSkyB - New");
    693693    }
    694694    else if ((atr_size == sizeof (atr_skyitalia)) && (memcmp (atr, atr_skyitalia, atr_size) == 0))
    695695    {
    696         cs_log("[videoguard2-reader] type: VideoGuard Sky Italia");
     696        cs_ri_log("[videoguard2-reader] type: VideoGuard Sky Italia");
    697697    }
    698698    else if ((atr_size == sizeof (atr_directv)) && (memcmp (atr, atr_directv, atr_size) == 0))
    699699    {
    700         cs_log("[videoguard2-reader] type: VideoGuard DirecTV");
     700        cs_ri_log("[videoguard2-reader] type: VideoGuard DirecTV");
    701701    }
    702702    else if ((atr_size == sizeof (atr_yes)) && (memcmp (atr, atr_yes, atr_size) == 0))
    703703    {
    704         cs_log("[videoguard2-reader] type: VideoGuard YES DBS Israel");
     704        cs_ri_log("[videoguard2-reader] type: VideoGuard YES DBS Israel");
    705705    }
    706706    else if ((atr_size == sizeof (atr_viasat_new)) && (memcmp (atr, atr_viasat_new, atr_size) == 0))
    707707    {
    708         cs_log("[videoguard2-reader] type: VideoGuard Viasat new (093E)");
     708        cs_ri_log("[videoguard2-reader] type: VideoGuard Viasat new (093E)");
    709709                BASEYEAR = 2000;
    710710    }
    711711    else if ((atr_size == sizeof (atr_viasat_scandinavia)) && (memcmp (atr, atr_viasat_scandinavia, atr_size) == 0))
    712712    {
    713         cs_log("[videoguard2-reader] type: VideoGuard Viasat Scandinavia");
     713        cs_ri_log("[videoguard2-reader] type: VideoGuard Viasat Scandinavia");
    714714                BASEYEAR = 2000;
    715715    }
    716716    else if ((atr_size == sizeof (atr_skyitalia93b)) && (memcmp (atr, atr_skyitalia93b, atr_size) == 0))
    717717    {
    718         cs_log("[videoguard2-reader] type: VideoGuard Sky Italia new (093B)");
     718        cs_ri_log("[videoguard2-reader] type: VideoGuard Sky Italia new (093B)");
    719719    }
    720720    else if ((atr_size == sizeof (atr_premiere)) && (memcmp (atr, atr_premiere, atr_size) == 0))
    721721    {
    722         cs_log("[videoguard2-reader] type: VideoGuard Sky Germany");
     722        cs_ri_log("[videoguard2-reader] type: VideoGuard Sky Germany");
    723723    }
    724724    else if ((atr_size == sizeof (atr_kbw)) && (memcmp (atr, atr_kbw, atr_size) == 0))
    725725    {
    726         cs_log("[videoguard2-reader] type: VideoGuard Kabel BW");
     726        cs_ri_log("[videoguard2-reader] type: VideoGuard Kabel BW");
    727727    }
    728728    else if ((atr_size == sizeof (atr_get)) && (memcmp (atr, atr_get, atr_size) == 0))
    729729    {
    730         cs_log("[videoguard2-reader] type: VideoGuard Get Kabel Norway");
     730        cs_ri_log("[videoguard2-reader] type: VideoGuard Get Kabel Norway");
    731731                    BASEYEAR = 2004;
    732732    }
    733733    else if ((atr_size == sizeof (atr_foxtel_90b)) && (memcmp (atr, atr_foxtel_90b, atr_size) == 0))
    734734    {   
    735     cs_log("[videoguard2-reader] type: VideoGuard Foxtel Australia (090b)");
     735    cs_ri_log("[videoguard2-reader] type: VideoGuard Foxtel Australia (090b)");
    736736                BASEYEAR = 2000;           
    737737    }
     
    873873    }
    874874
    875   cs_log("[videoguard2-reader] type: VideoGuard, caid: %04X, serial: %02X%02X%02X%02X, BoxID: %02X%02X%02X%02X",
     875  cs_ri_log("[videoguard2-reader] type: VideoGuard, caid: %04X, serial: %02X%02X%02X%02X, BoxID: %02X%02X%02X%02X",
    876876         reader[ridx].caid[0],
    877877         reader[ridx].hexserial[2],reader[ridx].hexserial[3],reader[ridx].hexserial[4],reader[ridx].hexserial[5],
Note: See TracChangeset for help on using the changeset viewer.