projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git]
/
src
/
remoted
/
remoted.h
diff --git
a/src/remoted/remoted.h
b/src/remoted/remoted.h
old mode 100755
(executable)
new mode 100644
(file)
index
d26e289
..
a261d14
--- a/
src/remoted/remoted.h
+++ b/
src/remoted/remoted.h
@@
-1,6
+1,3
@@
-/* @(#) $Id: ./src/remoted/remoted.h, 2011/09/08 dcid Exp $
- */
-
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
*
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
*
@@
-10,9
+7,7
@@
* Foundation
*/
* Foundation
*/
-
#ifndef __LOGREMOTE_H
#ifndef __LOGREMOTE_H
-
#define __LOGREMOTE_H
#ifndef ARGV0
#define __LOGREMOTE_H
#ifndef ARGV0
@@
-22,26
+17,25
@@
#include "config/remote-config.h"
#include "sec.h"
#include "config/remote-config.h"
#include "sec.h"
-
-/*** Function prototypes ***/
+/** Function prototypes **/
/* Read remoted config */
/* Read remoted config */
-int RemotedConfig(char *cfgfile, remoted *logr);
+int RemotedConfig(const char *cfgfile, remoted *cfg);
/* Handle Remote connections */
/* Handle Remote connections */
-void HandleRemote(int position, int uid);
+void HandleRemote(int position, int uid) __attribute__((noreturn));
/* Handle Syslog */
/* Handle Syslog */
-void HandleSyslog();
+void HandleSyslog(void) __attribute__((noreturn));
/* Handle Syslog TCP */
/* Handle Syslog TCP */
-void HandleSyslogTCP();
+void HandleSyslogTCP(void) __attribute__((noreturn));
/* Handle Secure connections */
/* Handle Secure connections */
-void HandleSecure();
+void HandleSecure(void) __attribute__((noreturn));
/* Forward active response events */
/* Forward active response events */
-void *AR_Forward(void *arg);
+void *AR_Forward(void *arg) __attribute__((noreturn));
/* Initialize the manager */
void manager_init(int isUpdate);
/* Initialize the manager */
void manager_init(int isUpdate);
@@
-50,26
+44,25
@@
void manager_init(int isUpdate);
void *wait_for_msgs(void *none);
/* Save control messages */
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 */
/* Send message to agent */
-int send_msg(int agentid, char *msg);
+int send_msg(unsigned int agentid, const char *msg);
/* Initializing send_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 */