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

A couple more little changes for AIX

John C. Frickson 9 лет назад
Родитель
Сommit
852bbb946c
3 измененных файлов с 7 добавлено и 3 удалено
  1. 1 1
      build-aux/ax_nagios_get_inetd
  2. 1 1
      configure
  3. 5 1
      src/check_nrpe.c

+ 1 - 1
build-aux/ax_nagios_get_inetd

@@ -133,7 +133,7 @@ AC_DEFUN([AX_NAGIOS_GET_INETD],
 				fi
 			fi
 
-			if test -n $inetd_disabled; then
+			if test -n "$inetd_disabled"; then
 				AC_MSG_RESULT($inetd_type $inetd_disabled)
 			else
 				AC_MSG_RESULT($inetd_type)

+ 1 - 1
configure

@@ -3050,7 +3050,7 @@ esac
 				fi
 			fi
 
-			if test -n $inetd_disabled; then
+			if test -n "$inetd_disabled"; then
 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $inetd_type $inetd_disabled" >&5
 $as_echo "$inetd_type $inetd_disabled" >&6; }
 			else

+ 5 - 1
src/check_nrpe.c

@@ -42,7 +42,7 @@ int show_version = FALSE;
 int packet_ver = NRPE_PACKET_VERSION_3;
 
 #ifdef HAVE_SSL
-# ifdef __sun
+# if defined(__sun) || defined(_AIX)
 SSL_METHOD *meth;
 # else
 const SSL_METHOD *meth;
@@ -506,10 +506,14 @@ void setup_ssl()
 # endif
 		if (sslprm.ssl_min_ver == TLSv1)
 			meth = TLSv1_client_method();
+# ifdef SSL_TXT_TLSV1_1
 		if (sslprm.ssl_min_ver == TLSv1_1)
 			meth = TLSv1_1_client_method();
+#  ifdef SSL_TXT_TLSV1_2
 		if (sslprm.ssl_min_ver == TLSv1_2)
 			meth = TLSv1_2_client_method();
+#  endif
+# endif
 
 		if ((ctx = SSL_CTX_new(meth)) == NULL) {
 			printf("CHECK_NRPE: Error - could not create SSL context.\n");