diff --git a/icinga2.spec b/icinga2.spec index 7f9484b..37e7374 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -228,6 +228,8 @@ Recommends: monitoring-plugins-common Recommends: logrotate %endif +Patch1: rhel6.patch + %description common This subpackage provides common directories, and the UID and GUID definitions among Icinga 2 related packages. @@ -330,6 +332,8 @@ Requires: nano Provides Nano syntax highlighting for icinga2. %prep + +%patch1 -p1 %setup -q -n %{name}-%{version} # use absolute shebang instead of env on SUSE distributions %if "%{_vendor}" == "suse" diff --git a/rhel6.patch b/rhel6.patch new file mode 100644 index 0000000..6959706 --- /dev/null +++ b/rhel6.patch @@ -0,0 +1,15 @@ +--- ./icinga2-orig/lib/base/tlsstream.cpp 2022-01-11 15:26:17.000000000 +0100 ++++ ./icinga2/lib/base/tlsstream.cpp 2022-01-11 15:27:32.000000000 +0100 +@@ -36,11 +36,7 @@ + void UnbufferedAsioTlsStream::BeforeHandshake(handshake_type type) + { + namespace ssl = boost::asio::ssl; +- +- if (!m_Hostname.IsEmpty()) { +- X509_VERIFY_PARAM_set1_host(SSL_get0_param(native_handle()), m_Hostname.CStr(), m_Hostname.GetLength()); +- } +- ++ + set_verify_mode(ssl::verify_peer | ssl::verify_client_once); + + set_verify_callback([this](bool preverified, ssl::verify_context& ctx) {