Commit graph

67 commits

Author SHA1 Message Date
Georgi Chorbadzhiyski
3777a07289 cwc: Add Bulcrypt support. 2012-04-20 18:04:43 +03:00
Jaroslav Kysela
c8af1f21d4 cwc: do not send ECM requests when NOKs are received
Do not send ECM requests to the card reader when ECMs cannot be read.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2012-04-13 09:05:00 +02:00
Jaroslav Kysela
e5eef814f2 cwc: Use hostname:port notation in log messages
Show all cwc connection information to users.
Multiple card readers can be configured on same IP but different ports.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2012-04-12 14:47:59 +02:00
Jaroslav Kysela
39d1600bf9 cwc: Use only one fastest ECM reader
Use only one - fastest - ECM reader when multiple CA readers/cards are
available for one program.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2012-04-12 14:47:57 +02:00
Jaroslav Kysela
84842c951c cwc: Allow updating of EMMs only from one channel at a time
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2012-04-10 20:57:35 +02:00
Jaroslav Kysela
98dd35342f cwc: Use "per stream" update id for Cryptoworks and Viaccess CA composed emms
This fixes possible shared EMM messages composing issues when multiple
streams are sending EMMs to the card reader. Just make sure, that both
parts of compose messages are from one "stream".

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2012-04-10 20:57:33 +02:00
Andreas Öman
5777a1fe30 Merge pull request #84 from perexg/fixes-emm
cwc: improve EMM handling for multiple readers with same CAS system
2012-04-10 10:29:34 -07:00
Jaroslav Kysela
30eb130fc1 cwc: Cryptoworks - removed debug lines introduced in last commit 2012-04-10 14:39:45 +02:00
Jaroslav Kysela
a06ee6d175 cwc: Cryptoworks - re-compose the EMM-S (shared) messages
The newcamd server expects composed EMM-S messages from 0x84 (EMM-SH)
and 0x84 (EMM-SB).

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2012-04-10 14:35:28 +02:00
Jaroslav Kysela
a9bb7c3106 cwc: improve EMM handling for multiple readers with same CAS system
Add CAID filter to identify the correct reader for EMM messages. Previous
code sent all EMMs to all readers with different CAIDs but same CAS system.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2012-04-10 11:25:40 +02:00
Jaroslav Kysela
da4c28b981 cwc: Add EMM support for the Cryptoworks system
Add initial EMM support for Cryptoworks. Also add Irdeto CAID numbers
for Czech providers to the src/psi.c table.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2012-04-10 10:30:17 +02:00
Frank Meerkötter
8d65d26893 fix "comparison of unsigned expression < 0 is always false" 2012-03-31 23:45:40 +02:00
amet
5f00b7309a change CWS_NETMSGSIZE to 362 2012-03-08 14:13:48 +04:00
Bart Lauret
07c618aaa4 added missing free()s 2012-03-07 15:12:48 +01:00
William van de Velde
51173a5508 Fix the emm updates for seca, the break was accidently removed when adding support for dre cards. 2011-12-13 19:42:21 +01:00
Andreas Öman
920de31efe Send our id (0x6502) in cwc login. Can be used by servers to identify Tvheadend 2011-05-25 08:39:59 +02:00
Andreas Öman
24b7b2ed15 Check and act on return values from write() 2011-05-04 13:45:31 +02:00
Lars Op den Kamp
90e35703b9 implement emm updates for nagra and nds. credits: neoen 2011-04-18 03:57:24 +08:00
Andreas Öman
6fa99fbd59 Replace deprecated DES_key_sched() with DES_set_key_unchecked() 2011-01-25 23:47:59 +01:00
Andreas Öman
5b640b2ed0 Keep CWC in a separate lock domain to avoid waiting for global_lock 2011-01-25 22:58:00 +01:00
Lars Op den Kamp
a137baf845 fix typo in cwc 2011-01-19 09:32:49 +01:00
Andreas Öman
82d18a3872 * DRECrypt update emm (testing on OSCAM)
* fix for Long ECM for russian provider NTV+ (take from vdr-sc plugin systems/cardclient/newcamd.c)
* correct identification cards Drecrypt
2011-01-03 23:55:57 +01:00
Jonas Larsson
6eb145697d Add support for viaccess EMMs 2011-01-01 01:38:11 +01:00
Andreas Öman
e9066e71e5 Use OpenSSL for CWC's DES and MD5 password hashing 2010-12-29 23:03:23 +00:00
Andreas Öman
123a261f4b Rename th_stream -> elementary_stream 2010-11-29 20:13:54 +00:00
Andreas Öman
85132732b6 Rename transport -> service 2010-11-29 20:06:52 +00:00
Andreas Öman
42adea653d Rename tvhead.h -> tvheadend.h 2010-11-29 19:25:24 +00:00
Andreas Öman
b458766831 % -> %s 2010-10-08 21:07:09 +00:00
Benjamin Larsson
997aeb9791 Add from where we get the keys in the log. 2010-10-08 21:02:26 +00:00
Andreas Öman
3f68bb68aa Make sure the descrambling fifo is really flushed before switching keys 2010-07-03 08:07:39 +00:00
Andreas Öman
486291c4f6 Avoid updating CW while we are building the cluster to descramble 2010-07-02 14:59:52 +00:00
Andreas Öman
2b7231cd76 Log CWC request delay 2010-07-02 11:30:50 +00:00
Andreas Öman
3db2a37b25 Avoid mixing up keys from different pids 2010-06-27 22:17:24 +00:00
Andreas Öman
e5f04e7514 Avoid unnecessary assignment 2010-06-27 21:22:49 +00:00
Andreas Öman
119a154e1d Don't whine about "unknown card". We already say that in a better way in another log message 2010-06-24 12:20:17 +00:00
Andreas Öman
14ff47028b Maintain the order of PIDs as they appear in the PMT. Fixes bug #218 2010-06-04 20:33:16 +00:00
Andreas Öman
0545ca3b81 Add support for SECA EMMs
Ticket #139
2010-03-23 20:55:43 +00:00
Andreas Öman
e472434d01 Add support for Irdeto EMM
Patch by: opdenkamp
2010-03-21 10:47:17 +00:00
Andreas Öman
bdb3e95818 Fix incorrect CAID compare causing CW client to not work at all
Embarrassing...
2010-03-21 09:14:21 +00:00
Andreas Öman
d167cada79 Add support for multiple CAIDs per PID 2010-03-19 23:49:00 +00:00
Andreas Öman
83d087e205 Cosmetics 2010-03-17 19:13:59 +00:00
Andreas Öman
e1d4e3c1be Increase CWC_NETMSGSIZE 2010-02-12 19:08:42 +00:00
Andreas Öman
702297ecfe log which CWC entry we use when starting a transport 2010-01-24 22:43:35 +00:00
Andreas Öman
da7c2fc536 Only deal with ECM multi sections on irdeto 2010-01-16 23:29:52 +00:00
Andreas Öman
730eecc5ae Better handling of ECM sections vs. channels and negative ack from card server 2010-01-16 23:26:30 +00:00
Andreas Öman
4d992cca57 Fix MPEG TS section reassembly code
Const'ify lots of places where we pass transport stream blocks
2010-01-16 21:51:43 +00:00
Andreas Öman
b07f75228e Support multichannel ECM 2010-01-11 22:53:35 +00:00
Andreas Öman
10697016d8 Add a log message if we get an unexpected ECM reply 2009-12-20 22:25:43 +00:00
Andreas Öman
a544a46099 Avoid ECM buffer overruns 2009-12-20 22:22:13 +00:00
Sarge
2056c0544b Only check msb byte in caid 2009-12-08 17:33:56 +00:00