Ignore:
Timestamp:
02/28/13 15:30:46 (9 years ago)
Author:
gf
Message:

cryptoworks/viaccess: Allow EMMs that are reassembled by the client to work.

ACamd, mgcamd and possibly other clients reassemble and filter EMMs
before sending them to OSCam. When EMM reassembly was moved on the
local reader side in r8377, EMMs were stopped from reaching the card
until they were reassembled.

But if the EMM is already reassembled then no EMM-SH packets are
comming so the reassembly never succeeded.

With this change all EMMs reach the card even if they are not
reassembled. This allows already reassembled EMMs to work and EMM
reassembly to work.

The downside is that there would be some EMM writing errors because
the reader would try to write not assembled EMMs instead of waiting
for reassembly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/reader-viaccess.c

    r8377 r8441  
    10141014            reader->reassemble_emm_len=*len;
    10151015            //cs_ddump_mask(D_READER, buffer, len, "viaccess global emm:");
    1016             return 0;
     1016            break;
    10171017
    10181018        case 0x8e:
    10191019            // emm-s part 2
    1020             if (!reader->reassemble_emm_len) return 0;
     1020            if (!reader->reassemble_emm_len) return 1;
    10211021
    10221022            //extract nanos from emm-gh and emm-s
Note: See TracChangeset for help on using the changeset viewer.