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
/
client-agent
/
agentd.h
diff --git
a/src/client-agent/agentd.h
b/src/client-agent/agentd.h
old mode 100755
(executable)
new mode 100644
(file)
index
87b5c92
..
912c73e
--- a/
src/client-agent/agentd.h
+++ b/
src/client-agent/agentd.h
@@
-1,6
+1,3
@@
-/* @(#) $Id: ./src/client-agent/agentd.h, 2011/09/08 dcid Exp $
- */
-
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
*
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
*
@@
-10,70
+7,58
@@
* Foundation
*/
* Foundation
*/
-/* Part of the OSSEC HIDS
- * Available at http://www.ossec.net/hids/
- */
-
-
#ifndef __AGENTD_H
#ifndef __AGENTD_H
-
#define __AGENTD_H
#include "config/config.h"
#include "config/client-config.h"
#define __AGENTD_H
#include "config/config.h"
#include "config/client-config.h"
-
/*** Function Prototypes ***/
/* Client configuration */
/*** Function Prototypes ***/
/* Client configuration */
-int ClientConf(char *cfgfile);
+int ClientConf(const char *cfgfile);
/* Agentd init function */
/* Agentd init function */
-void AgentdStart(char *dir, int uid, int gid, char *user, char *group);
+void AgentdStart(const char *dir, int uid, int gid, const char *user, const char *group) __attribute__((noreturn));
/* Event Forwarder */
/* Event Forwarder */
-void *EventForward();
+void *EventForward(void);
/* Receiver messages */
/* Receiver messages */
-void *receive_msg();
+void *receive_msg(void);
/* Receiver messages for Windows */
void *receiver_thread(void *none);
/* Receiver messages for Windows */
void *receiver_thread(void *none);
-/* intcheck_file:
- * Sends integrity checking information about a file to the server.
- */
-int intcheck_file(char *file_name, char *dir);
+/* Send integrity checking information about a file to the server */
+int intcheck_file(const char *file_name, const char *dir);
-/* Sends message to server */
-int send_msg(int agentid, char *msg);
+/* Send message to server */
+int send_msg(int agentid, const char *msg);
/* Extract the shared files */
/* Extract the shared files */
-char *getsharedfiles();
+char *getsharedfiles(void);
-/* Initializes handshake to server */
+/* Initialize handshake to server */
void start_agent(int is_startup);
void start_agent(int is_startup);
-/* Connects to the server. */
+/* Connect to the server */
int connect_server(int initial_id);
int connect_server(int initial_id);
-/* notify server */
-void run_notify();
-
+/* Notify server */
+void run_notify(void);
/*** Global variables ***/
/*** Global variables ***/
-/* Global variables. Only modified
- * during startup.
- */
+/* Global variables. Only modified during startup. */
#include "shared.h"
#include "sec.h"
#include "shared.h"
#include "sec.h"
-int available_server;
-keystore keys;
-agent *logr;
+extern time_t available_server;
+extern int run_foreground;
+extern keystore keys;
+extern agent *agt;
+#endif /* __AGENTD_H */
-#endif
-/* EOF */