source: trunk/include/sh_html.h@ 522

Last change on this file since 522 was 481, checked in by katerina, 9 years ago

Enhancements and fixes for tickets #374, #375, #376, #377, #378, and #379.

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 ivst_flag;
56 int status_now;
57 int status_arr[CLT_MAX];
58 char timestamp[CLT_MAX][TIM_MAX];
59#ifdef SH_ENCRYPT
60 keyInstance keyInstE;
61 keyInstance keyInstD;
62#endif
63} client_t;
64
65/* --- server status ---
66 */
67typedef struct _s_stat {
68 time_t start;
69 time_t last;
70 int conn_open;
71 int conn_max;
72 long conn_total;
73} s_stat;
74
75extern s_stat server_status;
76
77/* write html report. Expects (client_t *) inptr.
78 */
79int sh_html_write(void * inptr);
80
81#endif
82
83#endif
Note: See TracBrowser for help on using the repository browser.