1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/net-mgmt/nrpe/files/patch-src_nrpe.c
Muhammad Moinur Rahman 55338de6ad net-mgmt/nrpe: Resurrect port with new version
THIS WILL REPLACE net-mgmt/nrpe3 WHICH FAILS TO BUILD WITH OpenSSL 3.0.0
and later.

nrpe is used to execute Nagios plugins on remote hosts and report the
results to the main Nagios server. From the Nagios homepage:

Allows you to execute "local" plugins (like check_disk, check_procs,
etc.) on remote hosts. The check_nrpe plugin is called from Nagios and
actually makes the plugin requests to the remote host. Requires that
nrpe be running on the remote host (either as a standalone daemon or as
a service under inetd).
2023-05-03 03:29:51 +02:00

12 lines
296 B
C

--- src/nrpe.c.orig 2022-07-18 19:27:53 UTC
+++ src/nrpe.c
@@ -357,7 +357,7 @@ void init_ssl(void)
exit(STATE_CRITICAL);
}
-#if OPENSSL_VERSION_NUMBER >= 0x10100000
+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
SSL_CTX_set_max_proto_version(ctx, 0);