Reiner Herrmann
005e950360
Enable reproducible building by dropping build date from version string
7 years ago
Georgi Chorbadzhiyski
8984be49a8
Try to fix a problem when stream goes from no program to properly decrypted
Without this fix "CODE_WORD_OK" message was not sent.
7 years ago
Georgi Chorbadzhiyski
2c1a032d69
Add --status-file (-0) option. This file keeps latest program status.
7 years ago
Georgi Chorbadzhiyski
28dd637542
Add --notify-wait (-9) option (not set by default).
Using it prevents running of several notification scripts in parallel
which can lead to races if the scripts are used for logging.
7 years ago
Georgi Chorbadzhiyski
29a5a7ad2f
If there is no input don't report other events
7 years ago
Georgi Chorbadzhiyski
39d57e595c
Add another error NO_PROGRAM error when PMT is missing from the input
7 years ago
Georgi Chorbadzhiyski
87494a0ffb
Report how much time the input was missing
7 years ago
Georgi Chorbadzhiyski
0113f790c2
Fix detection of non-encrypted streams
7 years ago
Georgi Chorbadzhiyski
bc8ba10650
Prevent openssl warnings when build on OS X >= 10.7
9 years ago
Georgi Chorbadzhiyski
c72df987ea
Add -Wredundant-decls to compiler flags.
9 years ago
Georgi Chorbadzhiyski
8c14716e5c
Let getopt() print error messages about options.
This removes tsdecrypt's error message in favour of getopt
native errors. Our message was always 'Unknown parameter'
which was not correct (most of the time) and very misleading.
9 years ago
Georgi Chorbadzhiyski
08ca2d7df8
Add support for Irdeto CHID filtering (tested with Raduga).
11 years ago
Georgi Chorbadzhiyski
24a0fcddaa
Reliably stop tsdecrypt when SIGTERM is received.
11 years ago
Georgi Chorbadzhiyski
7c92f531d4
Prevent hang/delay on exit.
Before this it was possible for pthread_join to hang waiting for
threads to finish. Also if there was no input data exiting was
delayed by a second.
After this patch the exit is instant even if there is no input data
and if a thread hangs and the main process can't stop it after two
seconds tsdecrypt exits anyway.
11 years ago
Georgi Chorbadzhiyski
b2fd5d6176
Add support for setting multicast source address /SSM/ (--input-source).
11 years ago
Georgi Chorbadzhiyski
336cfeaa19
Add support for Griffin CAS and for DGCrypt CAS.
11 years ago
Georgi Chorbadzhiyski
dd263a756c
Add --ecm-only (-v) and --ecm-and-emm-only (-q) options.
12 years ago
Georgi Chorbadzhiyski
b99eea5149
Cleanup internal variables.
This is in preparation for adding --ecm-only and -ecm-and-emm-only
options.
12 years ago
Georgi Chorbadzhiyski
7e88477439
Add IPv6 support for input and output.
12 years ago
Georgi Chorbadzhiyski
4853db457b
Create parse_host_and_port() function.
Refactor host and port parsing code into a function. It'll be used
when setting up input, output and camd server.
12 years ago
Georgi Chorbadzhiyski
c37cdd1b4f
Show error when unknown command line parameter was given.
12 years ago
Georgi Chorbadzhiyski
c6c078e589
tsdecrypt: There is no need to include string.h
12 years ago
Georgi Chorbadzhiyski
831eba2ca2
Add EMM filtering support.
12 years ago
Georgi Chorbadzhiyski
d617624e6f
Show more EMM counters in stats messages.
This patch adds two new EMM counters in the regular stats messages.
Now the counters are:
Received - How much EMMs were received from the input.
Skipped - How much EMMs were skipped because of filtering.
Sent - How much EMMs were added to the sending queue.
Processed - How much EMMs were sent to the CAMD server for processing.
12 years ago
Georgi Chorbadzhiyski
8f3321b270
Add support for IPv6 and for multiple CAMD addresses.
This patch adds support for connecting to CAMD over IPv6. Nice addition
is that now tsdecrypt tries each of the addresses returned when CAMD
hostname is resolved and connects to the one that works. Resolving
of the server address is done before each connect, which allows for
uninterupted migration of CAMD servers by just changing their DNS
record.
IPv6 functionality can be disabled by using -4/--ipv4 options or
if you fancy only IPv6 servers -6/--ipv6 can be used.
12 years ago
Georgi Chorbadzhiyski
27379785be
Add support for sending ECM/EMM packets from file.
12 years ago
Georgi Chorbadzhiyski
fa78d52e60
Show errors returned by getaddrinfo().
It is anti-social to just say that there is an error, when we
have a nice way of saying what the error is.
12 years ago
Georgi Chorbadzhiyski
5c19959d1f
Allow camd server address to be resolved, not only set by IP address.
The limitation is that resolving the hostname is performed only
once at tsdecrypt startup. If DNS changes while tsdecrypt is running,
tsdecrypt won't notice that.
12 years ago
Georgi Chorbadzhiyski
581cd66b37
No need to track where FSF moves. No code changes.
12 years ago
Georgi Chorbadzhiyski
0a21f788f3
The --no-output-filter should act as boolean.
12 years ago
Georgi Chorbadzhiyski
e31c1b9641
Remove deprecated --output-filter option.
The option correct option is --no-output-filter.
12 years ago
Georgi Chorbadzhiyski
78ea5cf936
Add --no-output-on-error (-u) option.
By using this option output can be disabled if there is no currently
received code word.
12 years ago
Georgi Chorbadzhiyski
efd6e9902a
Add support for Bulcrypt CAS.
12 years ago
Georgi Chorbadzhiyski
c45aa0e544
Add support for BISS keys with embeded CRC.
12 years ago
Georgi Chorbadzhiyski
7d75b1e2db
Add --biss-key (-Q) option to enable BISS support.
12 years ago
Georgi Chorbadzhiyski
4ad6efb3db
Allow DES key and const cw to start with 0x
12 years ago
Georgi Chorbadzhiyski
f23096eb58
Add support using FFdecsa as decryption library.
Use "make ffdecsa" to build tsdecrypt with ffdecsa support
or "make dvbcsa" to build with libdvbcsa (this is still the default).
12 years ago
Georgi Chorbadzhiyski
2787b678b0
Move CSA benchmark from tsdecrypt.c to csa.c
12 years ago
Georgi Chorbadzhiyski
40a64d59b6
Lower thread stack to 128k
12 years ago
Georgi Chorbadzhiyski
bdb66d6cdd
Lower main() stack usage.
12 years ago
Georgi Chorbadzhiyski
e3202bb704
Add --const-cw (-Y) option that allows using constant code word.
12 years ago
Georgi Chorbadzhiyski
185a0b94c3
Enable pid report when debug level is higher than normal.
12 years ago
Georgi Chorbadzhiyski
13c71be126
Put long options next to short options.
12 years ago
Georgi Chorbadzhiyski
00fade927f
notify: Added NO_EMM_RECEIVED event.
12 years ago
Georgi Chorbadzhiyski
0ddae6e3f7
Add --input-buffer (-T) option.
12 years ago
Georgi Chorbadzhiyski
f8f8612031
Reorder command line parameters in the help text.
12 years ago
Georgi Chorbadzhiyski
d44fbd9cd0
Add --log-file option.
12 years ago
Georgi Chorbadzhiyski
0d489ff1e2
Cleanup handling of syslog_host.
12 years ago
Georgi Chorbadzhiyski
075e7b601e
Cleanup user/pass handling.
12 years ago
Georgi Chorbadzhiyski
f8f7295862
Cleanup ident handling.
12 years ago