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
0d22eb0f89
notify-script.example: Run EMAIL_PROGRAM only if exists and it is executable
7 years ago
Georgi Chorbadzhiyski
53002099af
Fix language in two warning messages
7 years ago
Georgi Chorbadzhiyski
8c0e833bf5
Reformat man page a bit
7 years ago
Georgi Chorbadzhiyski
e6fbc81d83
Start passing _INPUT_ADDR and _OUTPUT_ADDR variables to notify script.
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
8a91afd29a
Update libfuncs and libtsfuncs to latest versions
7 years ago
Georgi Chorbadzhiyski
e86593c014
Makefile: Switch the build to use FFdecsa by default
7 years ago
Georgi Chorbadzhiyski
812f57fe7d
README: Add example commands to install openssl dev packages
7 years ago
Georgi Chorbadzhiyski
6e34110ff1
Add checks for functions that may fail
7 years ago
Georgi Chorbadzhiyski
0652f234f5
Track if stream is encrypted or not
7 years ago
Georgi Chorbadzhiyski
abbde44907
Makefile: Fix compilation on OS X
Use openssl headers provided by MacPorts (installed with `port install openssl`)
since OS X no longer ships the headers.
7 years ago
Georgi Chorbadzhiyski
5163e03f38
Update libtsfuncs to latest version
7 years ago
Georgi Chorbadzhiyski
f69577a82b
Send ecm pid over camd35 protocol.
Since r10358 oscam expects ECM pid to be send over the camd3 protocol.
This allows ECMs to be retransmitted over gbox.
This change adds support for sending ecm pid.
9 years ago
Georgi Chorbadzhiyski
56df0b5f60
Remove dead assignments and increments.
9 years ago
Georgi Chorbadzhiyski
b56f07d257
csa: check if batch_size is zero.
9 years ago
Georgi Chorbadzhiyski
b7505779d1
libtsfuncs: Update the library.
9 years ago
Georgi Chorbadzhiyski
ac4dd30655
libfuncs: Update the library.
9 years ago
Georgi Chorbadzhiyski
950a30ad7d
build: Introduce LDFLAGS variable.
9 years ago
Georgi Chorbadzhiyski
bc8ba10650
Prevent openssl warnings when build on OS X >= 10.7
9 years ago
Georgi Chorbadzhiyski
19aadf5a77
tables: Fix header guard definition.
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
c1541142b7
Update libfuncs and libtsfuncs
10 years ago
Georgi Chorbadzhiyski
c0d7d4daed
build: Use CROSS prefix when caling strip.
10 years ago
Georgi Chorbadzhiyski
895f235d70
Fix cross compilation of FFDecsa
10 years ago
Georgi Chorbadzhiyski
4c1bcd3743
Update libtsfuncs to add cat checks.
11 years ago
Georgi Chorbadzhiyski
0041eed657
Fix syntax error.
11 years ago
Georgi Chorbadzhiyski
29a975b5d3
Release version 10.
It's been an year since the last release. Lazy, lazy, lazy!
11 years ago
Georgi Chorbadzhiyski
5c593e8236
Update libfuncs to get access to new Griffin CAIDs.
11 years ago
Georgi Chorbadzhiyski
b508fbe282
List available Irdeto CHIDs found in ECM stream.
11 years ago
Georgi Chorbadzhiyski
08ca2d7df8
Add support for Irdeto CHID filtering (tested with Raduga).
11 years ago
Georgi Chorbadzhiyski
95f023d216
Log server address that we connected to.
This is useful when DNS name is used for server address. Without logging
the actual IP address there was no way to know which server refused the
connection or returned error.
11 years ago
Georgi Chorbadzhiyski
24a0fcddaa
Reliably stop tsdecrypt when SIGTERM is received.
11 years ago
Georgi Chorbadzhiyski
4868835da2
Fix invalid read caused by wrong memcpy size.
Valgrind report:
Invalid read of size 8
at 0x41CCB7: get_socket.constprop.1 (udp.c:81)
by 0x41CDC7: udp_connect_input (udp.c:102)
by 0x404BDE: main (tsdecrypt.c:978)
Address 0x607a410 is 0 bytes after a block of size 64 alloc'd
at 0x4C2A359: malloc (vg_replace_malloc.c:270)
by 0x594955C: gaih_inet (in /lib64/libc-2.17.so)
by 0x594D18C: getaddrinfo (in /lib64/libc-2.17.so)
by 0x41CB95: get_socket.constprop.1 (udp.c:61)
by 0x41CDC7: udp_connect_input (udp.c:102)
by 0x404BDE: main (tsdecrypt.c:978)
11 years ago
Georgi Chorbadzhiyski
ea15008f4e
Increase how much seconds to assume the key is valid.
10 seconds is a bit low, there are services that change their key
every 15 seconds. Increase the period in which we assume the key is
valid to 30 seconds.
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
5ef7e1add9
Another fixup for setting ecm_change_time.
Do not report broken time if the ECM change is exactly at 0 seconds.
11 years ago
Georgi Chorbadzhiyski
3de357a51c
Set ecm_change_time even when the log is disabled.
11 years ago
Georgi Chorbadzhiyski
c37a0be860
Initialize potentially uninitialzed variable.
filter.c: In function "filter_parse":
filter.c:87:15: warning: "saveptr1" may be used uninitialized in this function.
11 years ago
Georgi Chorbadzhiyski
1fd5008263
Add support for EMM filters based on section length.
11 years ago
Georgi Chorbadzhiyski
dc4df6e288
Add support for EMM filters similar to DVBAPI filters (match + mask).
11 years ago
Georgi Chorbadzhiyski
cebdc73435
README: Update help text.
11 years ago
Georgi Chorbadzhiyski
489ff43769
Fix compilation error under OS X.
11 years ago
Georgi Chorbadzhiyski
b2fd5d6176
Add support for setting multicast source address /SSM/ (--input-source).
11 years ago