-
Notifications
You must be signed in to change notification settings - Fork 4
/
module-cw-cycle-check.h
41 lines (36 loc) · 1023 Bytes
/
module-cw-cycle-check.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef MODULE_CW_CYCLE_CHECK_H_
#define MODULE_CW_CYCLE_CHECK_H_
#ifdef CW_CYCLE_CHECK
struct s_cwc_md5
{
uchar md5[CS_ECMSTORESIZE];
int32_t csp_hash;
uchar cw[16];
};
struct s_cw_cycle_check
{
uchar cw[16];
time_t time;
time_t locktime; // lock in learning
uint16_t caid;
uint16_t sid;
uint16_t chid;
uint32_t provid;
int16_t ecmlen;
int8_t stage;
int32_t cycletime;
int32_t dyncycletime;
int8_t nextcyclecw;
struct s_cwc_md5 ecm_md5[15]; // max 15 old ecm md5 /csp-hashs
int8_t cwc_hist_entry;
uint8_t old;
int8_t stage4_repeat;
struct s_cw_cycle_check *prev;
struct s_cw_cycle_check *next;
};
void cleanupcwcycle(void);
uint8_t checkcwcycle(struct s_client *client, ECM_REQUEST *er, struct s_reader *reader, uchar *cw, int8_t rc, uint8_t cycletime_fr, uint8_t next_cw_cycle_fr);
#else
static inline void cleanupcwcycle(void) { };
#endif
#endif