1 /* @(#) $Id: remoted.h,v 1.18 2009/06/24 18:53:07 dcid Exp $ */
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 3) as published by the FSF - Free Software
18 #define ARGV0 "ossec-remoted"
21 #include "config/remote-config.h"
25 /*** Function prototypes ***/
27 /* Read remoted config */
28 int RemotedConfig(char *cfgfile, remoted *logr);
30 /* Handle Remote connections */
31 void HandleRemote(int position, int uid);
36 /* Handle Syslog TCP */
37 void HandleSyslogTCP();
39 /* Handle Secure connections */
42 /* Forward active response events */
43 void *AR_Forward(void *arg);
45 /* Initialize the manager */
46 void manager_init(int isUpdate);
48 /* Wait for messages from the agent to analyze */
49 void *wait_for_msgs(void *none);
51 /* Save control messages */
52 void save_controlmsg(int agentid, char *msg);
54 /* Send message to agent */
55 int send_msg(int agentid, char *msg);
57 /* Initializing send_msg */
60 int check_keyupdate();
66 void keyupdate_init();
69 /*** Global variables ***/