From 0e3fc1d185bc17fc38b53a505a34268540f811b1 Mon Sep 17 00:00:00 2001 From: Glenn Date: Wed, 16 Apr 2014 21:15:28 +0200 Subject: [PATCH] Add support for seca3 emm (card updates) used by canal-digitaal nl and tv-vlaanderen --- src/descrambler/cwc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/descrambler/cwc.c b/src/descrambler/cwc.c index da6f4e76..ecd81382 100755 --- a/src/descrambler/cwc.c +++ b/src/descrambler/cwc.c @@ -1402,12 +1402,12 @@ cwc_emm_seca(cwc_t *cwc, struct cs_card_data *pcard, uint8_t *data, int len) { int match = 0; - if (data[0] == 0x82) { + if (data[0] == 0x82) { //unique emm if (memcmp(&data[3], &pcard->cwc_ua[2], 6) == 0) { match = 1; } } - else if (data[0] == 0x84) { + else if (data[0] == 0x84) { //shared emm /* XXX this part is untested but should do no harm */ int i; for (i=0; i < pcard->cwc_num_providers; i++) { @@ -1417,6 +1417,9 @@ cwc_emm_seca(cwc_t *cwc, struct cs_card_data *pcard, uint8_t *data, int len) } } } + else if (data[0] == 0x83) { //global emm -> seca3 + match = 1; + } if (match) cwc_send_msg(cwc, data, len, 0, 1, 0, 0);