RedisConnection: remove now redundant setting of TLS verification parameters

This is now done in UnbufferedAsioTlsStream.
This commit is contained in:
Julian Brost 2021-08-13 11:15:14 +02:00
parent 3ab347bfd4
commit cb09d6833f
1 changed files with 0 additions and 7 deletions

View File

@ -274,13 +274,6 @@ void RedisConnection::Connect(asio::yield_context& yc)
auto connectTimeout (MakeTimeout(conn));
Defer cancelTimeout ([&connectTimeout]() { connectTimeout->Cancel(); });
if (!m_Insecure) {
auto native (tlsConn.native_handle());
X509_VERIFY_PARAM_set1_host(SSL_get0_param(native), m_Host.CStr(), 0);
SSL_set_verify(native, SSL_VERIFY_PEER, NULL);
}
icinga::Connect(conn->lowest_layer(), m_Host, Convert::ToString(m_Port), yc);
tlsConn.async_handshake(tlsConn.client, yc);