Skip to content

Commit b98f939

Browse files
julianbrostN-o-X
authored andcommitted
RedisConnection: remove now redundant setting of TLS verification parameters
This is now done in UnbufferedAsioTlsStream.
1 parent f0b1195 commit b98f939

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/icingadb/redisconnection.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,6 @@ void RedisConnection::Connect(asio::yield_context& yc)
274274
auto connectTimeout (MakeTimeout(conn));
275275
Defer cancelTimeout ([&connectTimeout]() { connectTimeout->Cancel(); });
276276

277-
if (!m_Insecure) {
278-
auto native (tlsConn.native_handle());
279-
280-
X509_VERIFY_PARAM_set1_host(SSL_get0_param(native), m_Host.CStr(), 0);
281-
SSL_set_verify(native, SSL_VERIFY_PEER, NULL);
282-
}
283-
284277
icinga::Connect(conn->lowest_layer(), m_Host, Convert::ToString(m_Port), yc);
285278
tlsConn.async_handshake(tlsConn.client, yc);
286279

0 commit comments

Comments
 (0)