rpm-icinga2/rhel6.patch
2022-01-11 15:44:35 +01:00

16 lines
558 B
Diff

--- icinga2/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) {