mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-29 13:20:21 +00:00
revert dbg config
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
4dec0e5329
commit
d9d049d180
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user