mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-05 06:26:52 +00:00
Remove mbedtls_ssl_conf_dbg() if !MBEDTLS_DEBUG_C
This commit is contained in:
parent
272063abfd
commit
14a4a44e60
12 changed files with 42 additions and 6 deletions
|
|
@ -450,6 +450,7 @@ struct options
|
|||
|
||||
int query_config( const char *config );
|
||||
|
||||
#if defined(MBEDTLS_DEBUG_C)
|
||||
static void my_debug( void *ctx, int level,
|
||||
const char *file, int line,
|
||||
const char *str )
|
||||
|
|
@ -465,6 +466,7 @@ static void my_debug( void *ctx, int level,
|
|||
basename, line, level, str );
|
||||
fflush( (FILE *) ctx );
|
||||
}
|
||||
#endif /* MBEDTLS_DEBUG_C */
|
||||
|
||||
|
||||
#if !defined(MBEDTLS_SSL_CONF_RECV) && \
|
||||
|
|
@ -1777,7 +1779,9 @@ int main( int argc, char *argv[] )
|
|||
mbedtls_ssl_conf_rng_ctx( &conf, &ctr_drbg );
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_DEBUG_C)
|
||||
mbedtls_ssl_conf_dbg( &conf, my_debug, stdout );
|
||||
#endif
|
||||
|
||||
#if !defined(MBEDTLS_SSL_CONF_READ_TIMEOUT)
|
||||
mbedtls_ssl_conf_read_timeout( &conf, opt.read_timeout );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue