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

Updated to support compiling on Solaris 10 (thanks to Kevin Pendleton)

Eric Stanley 14 лет назад
Родитель
Сommit
92526412e9
3 измененных файлов с 21 добавлено и 7 удалено
  1. 2 1
      Changelog
  2. 13 0
      include/common.h
  3. 6 6
      include/dh.h

+ 2 - 1
Changelog

@@ -3,10 +3,11 @@ NRPE Changelog
 **************
 
 
-2.13 - ??/??/????
+2.13 - 11/11/2011
 -----------------
 - Applied Kaspersky Labs supplied patch for extending allowed_hosts (Konstantin Malov)
 - Fixed bug in allowed_hosts parsing (Eric Stanley)
+- Updated to support compiling on Solaris 10 (thanks to Kevin Pendleton)
 
 
 2.12 - 03/10/2008

+ 13 - 0
include/common.h

@@ -69,3 +69,16 @@ typedef struct packet_struct{
 	int16_t   result_code;
 	char      buffer[MAX_PACKETBUFFER_LENGTH];
         }packet;
+
+/**************** OPERATING SYSTEM SPECIFIC DEFINITIONS **********/
+#ifdef __sun
+
+#  ifndef LOG_AUTHPRIV
+#    define LOG_AUTHPRIV LOG_AUTH
+#  endif
+
+#  ifndef LOG_FTP
+#    define LOG_FTP LOG_DAEMON
+#  endif
+
+#endif

+ 6 - 6
include/dh.h

@@ -4,12 +4,12 @@
 DH *get_dh512()
 	{
 	static unsigned char dh512_p[]={
-		0x96,0x9A,0x23,0x95,0x6A,0xBA,0x24,0x9C,0xE6,0x46,0x5B,0xFF,
-		0xFE,0x76,0xEA,0xCF,0xA5,0xCF,0xE0,0xD8,0x94,0xDB,0x77,0x78,
-		0xC4,0x22,0xE8,0xC6,0x36,0x4B,0xDF,0x34,0xE1,0xA7,0x12,0x66,
-		0x6A,0x43,0x46,0x81,0x8D,0xFB,0xF3,0xE5,0xDC,0x13,0x19,0x3F,
-		0x90,0xFD,0x21,0x1C,0x2E,0x1F,0xCF,0xEF,0x5B,0x3F,0x25,0x75,
-		0x09,0xBB,0xF2,0x3B,
+		0xA1,0x2F,0x49,0x4D,0xA6,0x62,0x93,0x02,0x5F,0xFA,0x5C,0xB7,
+		0x71,0x59,0x44,0x19,0x66,0x88,0x92,0x86,0x16,0x6E,0xD1,0x91,
+		0xBA,0xC6,0x32,0x3D,0x72,0x01,0xE8,0x24,0x60,0x41,0x21,0x7D,
+		0x51,0x55,0x70,0x9E,0x40,0x2A,0x7D,0x9A,0x8B,0x7B,0x85,0xA9,
+		0xEB,0xE3,0x2E,0xEE,0x5A,0x60,0x7E,0xBC,0x85,0x80,0x42,0x68,
+		0x96,0xB1,0x1B,0xEB,
 		};
 	static unsigned char dh512_g[]={
 		0x02,