Просмотр исходного кода

Document no SSL command line argument

Ethan Galstad 22 лет назад
Родитель
Сommit
844f2200b2
3 измененных файлов с 13 добавлено и 11 удалено
  1. 6 6
      include/dh.h
  2. 3 2
      src/check_nrpe.c
  3. 4 3
      src/nrpe.c

+ 6 - 6
include/dh.h

@@ -4,12 +4,12 @@
 DH *get_dh512()
 	{
 	static unsigned char dh512_p[]={
-		0xD8,0xF3,0x97,0xC2,0xF0,0x79,0x32,0xD3,0x54,0x25,0x59,0x02,
-		0x70,0xF9,0x61,0xD6,0x86,0x90,0x83,0x29,0xC5,0x00,0x53,0x4F,
-		0x5D,0x8B,0x10,0x01,0x23,0x7E,0x56,0x2F,0x06,0xA7,0x94,0x2B,
-		0x71,0xEE,0xB6,0xF3,0x13,0x9C,0x1E,0x23,0x7E,0x42,0xE4,0xE4,
-		0x8A,0x9C,0x2E,0x6D,0x59,0x83,0x33,0xBE,0xF9,0xA7,0x46,0xB0,
-		0x5F,0x32,0xCF,0xCB,
+		0x9D,0x98,0x3E,0x48,0x3C,0xBA,0x34,0x25,0x7C,0x09,0xDC,0x2C,
+		0x54,0x10,0x57,0xBD,0xB3,0xA2,0xE5,0x57,0x97,0xC5,0x8E,0x14,
+		0x2B,0x78,0xD3,0x52,0xDF,0x45,0xD4,0xF0,0x8E,0xC6,0x6E,0xF3,
+		0xBF,0xB2,0x9A,0xB7,0xCD,0xCC,0xD0,0x68,0xF6,0x2D,0x39,0xE5,
+		0x23,0x07,0x14,0x15,0x1E,0xE9,0x65,0x05,0x6C,0x19,0x94,0x37,
+		0x05,0xBC,0xA6,0x5B,
 		};
 	static unsigned char dh512_g[]={
 		0x02,

+ 3 - 2
src/check_nrpe.c

@@ -4,7 +4,7 @@
  * Copyright (c) 1999-2004 Ethan Galstad (nagios@nagios.org)
  * License: GPL
  *
- * Last Modified: 01-19-2004
+ * Last Modified: 05-20-2004
  *
  * Command line: CHECK_NRPE -H <host_address> [-p port] [-c command] [-to to_sec]
  *
@@ -82,9 +82,10 @@ int main(int argc, char **argv){
 
 	if(result!=OK || show_help==TRUE){
 
-		printf("Usage: check_nrpe -H <host> [-p <port>] [-t <timeout>] [-c <command>] [-a <arglist...>]\n");
+		printf("Usage: check_nrpe -H <host> [-n] [-p <port>] [-t <timeout>] [-c <command>] [-a <arglist...>]\n");
 		printf("\n");
 		printf("Options:\n");
+		printf(" -n         = Do no use SSL\n");
 		printf(" <host>     = The address of the host running the NRPE daemon\n");
 		printf(" [port]     = The port on which the daemon is running (default=%d)\n",DEFAULT_SERVER_PORT);
 		printf(" [timeout]  = Number of seconds before connection times out (default=%d)\n",DEFAULT_SOCKET_TIMEOUT);

+ 4 - 3
src/nrpe.c

@@ -4,7 +4,7 @@
  * Copyright (c) 1999-2004 Ethan Galstad (nagios@nagios.org)
  * License: GPL
  *
- * Last Modified: 03-06-2004
+ * Last Modified: 05-20-2004
  *
  * Command line: nrpe -c <config_file> [--inetd | --daemon]
  *
@@ -134,9 +134,10 @@ int main(int argc, char **argv){
 
 	else if(result!=OK || show_help==TRUE){
 
-		printf("Usage: nrpe -c <config_file> <mode>\n");
+		printf("Usage: nrpe [-n] -c <config_file> <mode>\n");
 		printf("\n");
 		printf("Options:\n");
+		printf(" -n            = Do not use SSL\n");
 		printf(" <config_file> = Name of config file to use\n");
 		printf(" <mode>        = One of the following two operating modes:\n");  
 		printf("   -i          =    Run as a service under inetd or xinetd\n");
@@ -232,7 +233,7 @@ int main(int argc, char **argv){
 		/* make sure we're not root */
 		check_privileges();
 
-		/* redirect STDERR to /dev/null
+		/* redirect STDERR to /dev/null */
 		close(2);
 		open("/dev/null",O_WRONLY);