Last change
on this file since 8450 was 8371, checked in by gf, 11 years ago |
Remove windows EOLs in cw-cycle check.
|
File size:
974 bytes
|
Line | |
---|
1 | #ifndef MODULE_CW_CYCLE_CHECK_H_
|
---|
2 | #define MODULE_CW_CYCLE_CHECK_H_
|
---|
3 |
|
---|
4 | #ifdef CW_CYCLE_CHECK
|
---|
5 |
|
---|
6 | struct s_cwc_md5 {
|
---|
7 | uchar md5[CS_ECMSTORESIZE];
|
---|
8 | int32_t csp_hash;
|
---|
9 | uchar cw[16];
|
---|
10 | };
|
---|
11 |
|
---|
12 | struct s_cw_cycle_check {
|
---|
13 | uchar cw[16];
|
---|
14 | time_t time;
|
---|
15 | time_t locktime; // lock in learning
|
---|
16 | uint16_t caid;
|
---|
17 | uint16_t sid;
|
---|
18 | uint16_t chid;
|
---|
19 | uint32_t provid;
|
---|
20 | int16_t ecmlen;
|
---|
21 | int8_t stage;
|
---|
22 | int32_t cycletime;
|
---|
23 | int32_t dyncycletime;
|
---|
24 | int8_t nextcyclecw;
|
---|
25 | int8_t badrepeat;
|
---|
26 | bool cw_stageswitch;
|
---|
27 | struct s_cwc_md5 ecm_md5[15]; // max 15 old ecm md5 /csp-hashs
|
---|
28 | int8_t cwc_hist_entry;
|
---|
29 | uint8_t old;
|
---|
30 | struct s_cw_cycle_check *prev;
|
---|
31 | struct s_cw_cycle_check *next;
|
---|
32 | };
|
---|
33 |
|
---|
34 | void cleanupcwcycle(void);
|
---|
35 | uint8_t checkcwcycle(ECM_REQUEST *er, struct s_reader *reader, uchar *cw, int8_t rc);
|
---|
36 | uint8_t cwcycle_check_act(uint16_t caid);
|
---|
37 | #else
|
---|
38 | static inline uint8_t cwcycle_check_act(uint16_t UNUSED(caid)) { return 0; };
|
---|
39 | static inline void cleanupcwcycle(void) { };
|
---|
40 | #endif
|
---|
41 |
|
---|
42 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.