Remove redundant setup
mbedtls_test_ssl_endpoint_init() already takes care of setting up debugging.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function
index cead9a3..58cf166 100644
--- a/tests/suites/test_suite_ssl.function
+++ b/tests/suites/test_suite_ssl.function
@@ -3137,10 +3137,6 @@
TEST_EQUAL(mbedtls_test_ssl_endpoint_init(&client, MBEDTLS_SSL_IS_CLIENT,
&client_options, NULL, NULL,
NULL), 0);
-#if defined(MBEDTLS_DEBUG_C)
- mbedtls_ssl_conf_dbg(&client.conf, client_options.cli_log_fun,
- client_options.cli_log_obj);
-#endif
server_options.server_min_version = version;
server_options.server_max_version = version;
@@ -3151,10 +3147,6 @@
TEST_EQUAL(mbedtls_test_ssl_endpoint_init(&server, MBEDTLS_SSL_IS_SERVER,
&server_options, NULL, NULL,
NULL), 0);
-#if defined(MBEDTLS_DEBUG_C)
- mbedtls_ssl_conf_dbg(&server.conf, server_options.srv_log_fun,
- server_options.srv_log_obj);
-#endif
TEST_EQUAL(mbedtls_test_mock_socket_connect(&client.socket,
&server.socket,