Skip to content

Commit

Permalink
Remove a definition not available in mbedtls 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed Jul 6, 2024
1 parent b994036 commit f3129ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions filter/url.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1912,20 +1912,19 @@ void filter_url_display_mbed_tls_error (int& ret, std::string* error, bool serve
// Everything OK
if (local_return == 0) return;

#ifdef Todo
// The server suppresses a couple of error messages caused by rogue clients or spiders.
// The reason for suppressing them is to prevent them from flooding the Journal.
if (server) {
// SSL - Processing of the ClientHello handshake message failed (-30976)
if (local_return == MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO) return;
// No longer in MbedTLS 3.x if (local_return == MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO) return;
// SSL - The connection indicated an EOF (-29312)
if (local_return == MBEDTLS_ERR_SSL_CONN_EOF) return;
// NET - Reading information from the socket failed (-76)
if (local_return == MBEDTLS_ERR_NET_RECV_FAILED) return;
// NET - Connection was reset by peer (-80)
if (local_return == MBEDTLS_ERR_NET_CONN_RESET) return;
}

// There's an error: Display it.
char error_buf [100];
mbedtls_strerror (local_return, error_buf, 100);
Expand All @@ -1944,7 +1943,6 @@ void filter_url_display_mbed_tls_error (int& ret, std::string* error, bool serve
} else {
Database_Logs::log (msg);
}
#endif // Todo
}


Expand Down

0 comments on commit f3129ff

Please sign in to comment.