Skip to content
Snippets Groups Projects
Commit 592aa302 authored by Henrik Triem's avatar Henrik Triem
Browse files

Add patch

parent 2f50a49a
No related branches found
No related tags found
No related merge requests found
Pipeline #23082 failed
......@@ -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"
......
--- ./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) {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment