revert dbg config
@@ -751,7 +751,6 @@ typedef struct mbedtls_endpoint
mbedtls_entropy_context entropy;
mbedtls_mock_socket socket;
mbedtls_endpoint_certificate cert;
- FILE *dbg_output;
} mbedtls_endpoint;
/*
@@ -873,17 +872,6 @@ exit:
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 @@ int mbedtls_endpoint_init( mbedtls_endpoint *ep, int endpoint_type, int pk_alg,
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;
