printf("session: %p\n",session);
break;
case 0x00020041:
- session=slot->application_manager = new eDVBCIApplicationManagerSession;
+ session=new eDVBCIApplicationManagerSession(slot);
printf("APPLICATION MANAGER\n");
break;
case 0x00030041:
- session=slot->ca_manager=new eDVBCICAManagerSession;
+ session = new eDVBCICAManagerSession(slot);
printf("CA MANAGER\n");
break;
case 0x00240041:
case 0x00100041:
// session=new eDVBCIAuthSession;
printf("AuthSession\n");
- break;
+// break;
case 0x00200041:
default:
printf("unknown resource type %02x %02x %02x %02x\n", resource_identifier[0], resource_identifier[1], resource_identifier[2],resource_identifier[3]);
len-=hlen;
//if (eDVBCIModule::getInstance()->workarounds_active & eDVBCIModule::workaroundMagicAPDULength)
- //{
- // if (((len-alen) > 0) && ((len - alen) < 3))
- // {
- // printf("WORKAROUND: applying work around MagicAPDULength\n");
- // alen=len;
- // }
- //}
+ {
+ if (((len-alen) > 0) && ((len - alen) < 3))
+ {
+ printf("WORKAROUND: applying work around MagicAPDULength\n");
+ alen=len;
+ }
+ }
if (session->receivedAPDU(tag, pkt, alen))
session->action = 1;
pkt+=alen;