source: branches/samhain-2_2-branch/include/sh_html.h

Last change on this file was 1, checked in by katerina, 19 years ago

Initial import

File size: 1.7 KB
Line 
1#ifndef SH_HTML_H
2#define SH_HTML_H
3
4#ifdef SH_WITH_SERVER
5
6
7#define CLT_INACTIVE 0
8#define CLT_STARTED 1
9#define CLT_ILLEGAL 2
10#define CLT_FAILED 3
11#define CLT_EXITED 4
12#define CLT_PANIC 5
13#define CLT_POLICY 6
14#define CLT_FILE 7
15#define CLT_MSG 8
16#define CLT_TOOLONG 9
17#define CLT_SUSPEND 10
18#define CLT_CHECK 11
19#define CLT_MAX 12
20
21/************************
22char * clt_stat[] = {
23 N_("Inactive"),
24 N_("Started"),
25 N_("ILLEGAL"),
26 N_("FAILED"),
27 N_("Exited"),
28 N_("PANIC"),
29 N_("POLICY"),
30 N_("File transfer"),
31 N_("Message"),
32 N_("TIMEOUT_EXCEEDED"),
33};
34**************************/
35
36extern char * clt_stat[];
37
38#ifdef SH_ENCRYPT
39#include "rijndael-api-fst.h"
40#endif
41
42/* --- client status ---
43 */
44typedef struct client_entry {
45 char * hostname;
46 char * salt;
47 char * verifier;
48 char session_key[KEY_LEN+1];
49 time_t session_key_timer;
50 time_t last_connect;
51 int exit_flag;
52 int dead_flag;
53 int encf_flag;
54 int ency_flag;
55 int status_now;
56 int status_arr[CLT_MAX];
57 char timestamp[CLT_MAX][TIM_MAX];
58#ifdef SH_ENCRYPT
59 keyInstance keyInstE;
60 keyInstance keyInstD;
61#endif
62} client_t;
63
64/* --- server status ---
65 */
66typedef struct _s_stat {
67 time_t start;
68 time_t last;
69 int conn_open;
70 int conn_max;
71 long conn_total;
72} s_stat;
73
74extern s_stat server_status;
75
76/* write html report. Expects (client_t *) inptr.
77 */
78int sh_html_write(void * inptr);
79
80#endif
81
82#endif
Note: See TracBrowser for help on using the repository browser.