X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fremoted%2Fremoted.h;h=a261d14e360af0cf7e8a5fb64319e7ea26bbd27a;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=2ebc56b15f131aed4ac3f0865624df4f41c6d87f;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/remoted/remoted.h b/src/remoted/remoted.h old mode 100755 new mode 100644 index 2ebc56b..a261d14 --- a/src/remoted/remoted.h +++ b/src/remoted/remoted.h @@ -1,17 +1,13 @@ -/* @(#) $Id: remoted.h,v 1.18 2009/06/24 18:53:07 dcid Exp $ */ - /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ - #ifndef __LOGREMOTE_H - #define __LOGREMOTE_H #ifndef ARGV0 @@ -21,26 +17,25 @@ #include "config/remote-config.h" #include "sec.h" - -/*** Function prototypes ***/ +/** Function prototypes **/ /* Read remoted config */ -int RemotedConfig(char *cfgfile, remoted *logr); +int RemotedConfig(const char *cfgfile, remoted *cfg); /* Handle Remote connections */ -void HandleRemote(int position, int uid); +void HandleRemote(int position, int uid) __attribute__((noreturn)); /* Handle Syslog */ -void HandleSyslog(); +void HandleSyslog(void) __attribute__((noreturn)); /* Handle Syslog TCP */ -void HandleSyslogTCP(); +void HandleSyslogTCP(void) __attribute__((noreturn)); /* Handle Secure connections */ -void HandleSecure(); +void HandleSecure(void) __attribute__((noreturn)); /* Forward active response events */ -void *AR_Forward(void *arg); +void *AR_Forward(void *arg) __attribute__((noreturn)); /* Initialize the manager */ void manager_init(int isUpdate); @@ -49,26 +44,25 @@ void manager_init(int isUpdate); void *wait_for_msgs(void *none); /* Save control messages */ -void save_controlmsg(int agentid, char *msg); +void save_controlmsg(unsigned int agentid, char *msg); /* Send message to agent */ -int send_msg(int agentid, char *msg); +int send_msg(unsigned int agentid, const char *msg); /* Initializing send_msg */ -void send_msg_init(); - -int check_keyupdate(); +void send_msg_init(void); -void key_lock(); +int check_keyupdate(void); -void key_unlock(); +void key_lock(void); -void keyupdate_init(); +void key_unlock(void); +void keyupdate_init(void); -/*** Global variables ***/ +/** Global variables **/ -keystore keys; -remoted logr; +extern keystore keys; +extern remoted logr; -#endif +#endif /* __LOGREMOTE_H */