Add patch

This commit is contained in:
Henrik Triem 2022-01-11 15:40:08 +01:00
parent 2f50a49a56
commit 592aa302aa
2 changed files with 19 additions and 0 deletions

View File

@ -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"

15
rhel6.patch Normal file
View File

@ -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) {