3 /* Copyright (C) 2009 Trend Micro Inc.
6 * This program is a free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public
8 * License (version 2) as published by the FSF - Free Software
12 /* Part of the OSSEC HIDS
13 * Available at http://www.ossec.net/hids/
21 #include "config/config.h"
22 #include "config/client-config.h"
25 /*** Function Prototypes ***/
27 /* Client configuration */
28 int ClientConf(char *cfgfile);
30 /* Agentd init function */
31 void AgentdStart(char *dir, int uid, int gid, char *user, char *group);
36 /* Receiver messages */
39 /* Receiver messages for Windows */
40 void *receiver_thread(void *none);
43 * Sends integrity checking information about a file to the server.
45 int intcheck_file(char *file_name, char *dir);
47 /* Sends message to server */
48 int send_msg(int agentid, char *msg);
50 /* Extract the shared files */
51 char *getsharedfiles();
53 /* Initializes handshake to server */
54 void start_agent(int is_startup);
56 /* Connects to the server. */
57 int connect_server(int initial_id);
63 /*** Global variables ***/
65 /* Global variables. Only modified