revert dbg config
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function
index 9434a60..ffb9438 100644
--- a/tests/suites/test_suite_ssl.function
+++ b/tests/suites/test_suite_ssl.function
@@ -751,7 +751,6 @@
mbedtls_entropy_context entropy;
mbedtls_mock_socket socket;
mbedtls_endpoint_certificate cert;
- FILE *dbg_output;
} mbedtls_endpoint;
/*
@@ -873,17 +872,6 @@
return ret;
}
-static void my_debug( void *ctx, int level,
- const char *file, int line,
- const char *str )
-{
- ((void) level);
- mbedtls_endpoint *ep=(mbedtls_endpoint *)ctx;
- mbedtls_fprintf( ep->dbg_output,
- "%s: %s:%04d: %s",
- ep->name, file, line, str );
- fflush( ep->dbg_output );
-}
/*
* Initializes \p ep structure. It is important to call `mbedtls_endpoint_free()`
* after calling this function even if it fails.
@@ -996,9 +984,6 @@
mbedtls_ssl_conf_set_user_data_p( &ep->conf, ep );
TEST_EQUAL( mbedtls_ssl_get_user_data_n( &ep->ssl ), user_data_n );
mbedtls_ssl_set_user_data_p( &ep->ssl, ep );
- ep->dbg_output = stderr;
- mbedtls_ssl_conf_dbg( &ep->conf, my_debug, ep );
- mbedtls_debug_set_threshold( 100 );
exit:
return ret;