mirror of
https://git.icinga.com/packaging/rpm-icinga2.git
synced 2025-09-22 17:47:50 +02:00
Add patch
This commit is contained in:
parent
2f50a49a56
commit
592aa302aa
@ -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
15
rhel6.patch
Normal 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) {
|
Loading…
x
Reference in New Issue
Block a user