Imported Upstream version 3.2.1
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
/*-
|
||||
* acl.c - header file for acl.c
|
||||
* Copyright (c) 2011 Kaspersky Lab ZAO
|
||||
* Last Modified: 08-10-2011 by Konstantin Malov with Oleg Koreshkov's help
|
||||
/****************************************************************************
|
||||
*
|
||||
* License: GPL
|
||||
* acl.h - header file for acl.c
|
||||
*
|
||||
* License: GPLv2
|
||||
* Copyright (c) 2011 Kaspersky Lab ZAO
|
||||
*
|
||||
* License Notice:
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -18,7 +20,8 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef ACL_H_INCLUDED
|
||||
#define ACL_H_INCLUDED 1
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
/************************************************************************
|
||||
/****************************************************************************
|
||||
*
|
||||
* COMMON.H - NRPE Common Include File
|
||||
* Copyright (c) 1999-2007 Ethan Galstad (nagios@nagios.org)
|
||||
* Last Modified: 2017-05-24
|
||||
* common.h - NRPE Common header file
|
||||
*
|
||||
* License:
|
||||
* License: GPLv2
|
||||
* Copyright (c) 2006-2017 Nagios Enterprises
|
||||
* 1999-2006 Ethan Galstad (nagios@nagios.org)
|
||||
*
|
||||
* License Notice:
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -19,7 +21,8 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
************************************************************************/
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
@@ -30,11 +33,12 @@
|
||||
# ifdef SSL_TYPE_openssl
|
||||
# include <@SSL_INC_PREFIX@err.h>
|
||||
# include <@SSL_INC_PREFIX@rand.h>
|
||||
# include <@SSL_INC_PREFIX@engine.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define PROGRAM_VERSION "3.1.1"
|
||||
#define MODIFICATION_DATE "2017-05-24"
|
||||
#define PROGRAM_VERSION "3.2.1"
|
||||
#define MODIFICATION_DATE "2017-09-01"
|
||||
|
||||
#define OK 0
|
||||
#define ERROR -1
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
/************************************************************************
|
||||
/****************************************************************************
|
||||
*
|
||||
* NRPE Common Header File
|
||||
* Copyright (c) 1999-2007 Ethan Galstad (nagios@nagios.org)
|
||||
* Last Modified: 11-23-2007
|
||||
* config.h - NRPE Configuration header file
|
||||
*
|
||||
* License:
|
||||
* License: GPLv2
|
||||
* Copyright (c) 2006-2017 Nagios Enterprises
|
||||
* 1999-2006 Ethan Galstad (nagios@nagios.org)
|
||||
*
|
||||
* License Notice:
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -19,7 +21,8 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
************************************************************************/
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef _CONFIG_H
|
||||
#define _CONFIG_H
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
/************************************************************************
|
||||
/****************************************************************************
|
||||
*
|
||||
* NRPE.H - NRPE Include File
|
||||
* Copyright (c) 1999-2007 Ethan Galstad (nagios@nagios.org)
|
||||
* Last Modified: 08-10-2011 by Konstantin Malov
|
||||
* nrpe.h - Nagios Remote Plugin Executor header file
|
||||
*
|
||||
* License:
|
||||
* License: GPLv2
|
||||
* Copyright (c) 2006-2017 Nagios Enterprises
|
||||
* 1999-2006 Ethan Galstad (nagios@nagios.org)
|
||||
*
|
||||
* License Notice:
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -20,9 +22,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
/**************** COMMAND STRUCTURE DEFINITION **********/
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct command_struct {
|
||||
char *command_name;
|
||||
|
||||
@@ -1,17 +1,12 @@
|
||||
/************************************************************************************************
|
||||
/****************************************************************************
|
||||
*
|
||||
* UTILS.H - NRPE Utilities Include File
|
||||
* utils.h - NRPE Utility Functions header file
|
||||
*
|
||||
* License: GPL
|
||||
* Copyright (c) 1999-2006 Ethan Galstad (nagios@nagios.org)
|
||||
* License: GPLv2
|
||||
* Copyright (c) 2009-2017 Nagios Enterprises
|
||||
* 1999-2008 Ethan Galstad (nagios@nagios.org)
|
||||
*
|
||||
* Last Modified: 12-11-2006
|
||||
*
|
||||
* Description:
|
||||
*
|
||||
* This file contains common include files and function definitions used in many of the plugins.
|
||||
*
|
||||
* License Information:
|
||||
* License Notice:
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +22,8 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
************************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#ifndef NRPE_UTILS_H_INCLUDED
|
||||
#define NRPE_UTILS_H_INCLUDED
|
||||
@@ -39,9 +35,9 @@ unsigned long calculate_crc32(char*, int);
|
||||
void randomize_buffer(char*,int);
|
||||
int my_tcp_connect(char*, int, int*);
|
||||
#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
|
||||
int my_connect(const char*, struct sockaddr_storage*, u_short, int, const char*);
|
||||
int my_connect(const char*, struct sockaddr_storage*, u_short, int, const char*, int);
|
||||
#else
|
||||
int my_connect(const char*, struct sockaddr*, u_short, int, const char*);
|
||||
int my_connect(const char*, struct sockaddr*, u_short, int, const char*, int);
|
||||
#endif
|
||||
void add_listen_addr(struct addrinfo**, int, char*, int);
|
||||
int clean_environ(const char *keep_env_vars, const char *nrpe_user);
|
||||
|
||||
Reference in New Issue
Block a user