dre: Fix shared EMM filters.

This should fix ticket #3078 and allow shared EMMs to reach the card.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8375 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Revert r8119 changes related to Viaccess EMM reassembly.

EMM reassembly should not know internal dvbapi client information.

The proper fix is to run reassembly on the local reader side and
remove it completely from the client side.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8376 4b0bc96b-bc66-0410-9d44-ebda105a78c1
cryptoworks/viaccess: Run EMM reassembly before writing EMM in the card.

Before this patch EMM reassembly was only run by the dvbapi client.

This means that any other client (via newcamd, cs378x, cccam) was
expected to perform its own EMM reassembly otherwise the card
was unable to write the EMMs that needed preprocessing (reassemblation).

This commit moves EMM reassembly where it belongs - just before the
EMM is written in the card. That simplifies client logic (no more
knowledge of EMM structure and types) and allows cards to be updated
via any network protocol as long as the client is not trying to be
smart and just sends us all EMM packets.

The changes were tested with SRG Swiss Viacess card and Digiturk
Cryptoworks card. In the both cards shared EMMs were written OK
while receiving them via cs378x protocol and tsdecrypt as client.

If a client sends already reassembled EMMs it also works.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8377 4b0bc96b-bc66-0410-9d44-ebda105a78c1
freebsd