source: trunk/include/sh_forward.h@ 203

Last change on this file since 203 was 170, checked in by katerina, 17 years ago

Plenty of compiler warnings fixed, SQL query length fixed, doc update.

File size: 3.1 KB
RevLine 
[1]1/* SAMHAIN file system integrity testing */
2/* Copyright (C) 1999 Rainer Wichmann */
3/* */
4/* This program is free software; you can redistribute it */
5/* and/or modify */
6/* it under the terms of the GNU General Public License as */
7/* published by */
8/* the Free Software Foundation; either version 2 of the License, or */
9/* (at your option) any later version. */
10/* */
11/* This program is distributed in the hope that it will be useful, */
12/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
13/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
14/* GNU General Public License for more details. */
15/* */
16/* You should have received a copy of the GNU General Public License */
17/* along with this program; if not, write to the Free Software */
18/* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20#ifndef SH_FORWARD_H
21#define SH_FORWARD_H
22
23#ifndef SH_STANDALONE
[20]24int sh_forward_set_strip (const char * str);
[1]25
26#endif
27
28/* generate a random password
29 */
[20]30int sh_forward_create_password (const char * dummy);
[1]31
32/* set time limit
33 */
[22]34int sh_forward_set_time_limit(const char * str);
[1]35
36/* error level for lookup failure
37 */
[22]38int sh_forward_lookup_level (const char * c);
[1]39
40/* create client entry for given password
41 */
[20]42int sh_forward_make_client (const char * str);
[1]43
[27]44/* set port to which we connect
45 */
46int sh_forward_server_port (const char * str);
47
[1]48#ifdef SH_WITH_SERVER
49
50#ifdef INET_SYSLOG
[22]51int set_syslog_active(const char * c);
[1]52#endif
53
54/* create socket and start listening
55 */
[170]56void create_server_tcp_socket (void);
[1]57
58/* whether to use client address as known to the communication layer
59 * and set by accept()
60 */
[22]61int set_socket_peer (const char * c);
[1]62
63/* whether to use client severity
64 */
[22]65int sh_forward_use_clt_sev (const char * c);
[1]66
67/* whether to use client class
68 */
[22]69int sh_forward_use_clt_class (const char * c);
[1]70
71/* server port
72 */
[22]73int sh_forward_set_port(const char * c);
[1]74
75/* server interface
76 */
[22]77int sh_forward_set_interface(const char * c);
[1]78
79/* a wrapper function
80 */
81void sh_forward_html_write(void);
82
83/* register a client
84 */
[22]85int sh_forward_register_client (const char * str);
[1]86
87/* start server
88 */
89void sh_receive(void);
90
91/* free() everything
92 */
93void sh_forward_free_all (void);
94
95#endif
96
[27]97#if defined(SH_WITH_CLIENT) || defined(SH_WITH_SERVER)
[1]98/* talk to server
99 */
100long sh_forward (char * errmsg);
101
[27]102/* set log server
103 */
104int sh_forward_setlogserver (const char * address);
105void reset_count_dev_server(void);
106#endif
[1]107
[27]108#ifdef SH_WITH_CLIENT
109
[1]110/* request file from server. file may be "CONF" or "DATA".
111 */
112long sh_forward_req_file (char * file);
113
114#endif
115
116#endif
117
Note: See TracBrowser for help on using the repository browser.