1 /* Copyright (C) 2009 Trend Micro Inc.
4 * This program is a free software; you can redistribute it
5 * and/or modify it under the terms of the GNU General Public
6 * License (version 2) as published by the FSF - Free Software
14 #define ARGV0 "ossec-remoted"
17 #include "config/remote-config.h"
20 /** Function prototypes **/
22 /* Read remoted config */
23 int RemotedConfig(const char *cfgfile, remoted *cfg);
25 /* Handle Remote connections */
26 void HandleRemote(int position, int uid) __attribute__((noreturn));
29 void HandleSyslog(void) __attribute__((noreturn));
31 /* Handle Syslog TCP */
32 void HandleSyslogTCP(void) __attribute__((noreturn));
34 /* Handle Secure connections */
35 void HandleSecure(void) __attribute__((noreturn));
37 /* Forward active response events */
38 void *AR_Forward(void *arg) __attribute__((noreturn));
40 /* Initialize the manager */
41 void manager_init(int isUpdate);
43 /* Wait for messages from the agent to analyze */
44 void *wait_for_msgs(void *none);
46 /* Save control messages */
47 void save_controlmsg(unsigned int agentid, char *msg);
49 /* Send message to agent */
50 int send_msg(unsigned int agentid, const char *msg);
52 /* Initializing send_msg */
53 void send_msg_init(void);
55 int check_keyupdate(void);
59 void key_unlock(void);
61 void keyupdate_init(void);
63 /** Global variables **/
68 #endif /* __LOGREMOTE_H */