Remove mbedtls_ssl_conf_dbg() if !MBEDTLS_DEBUG_C

This commit is contained in:
Hanno Becker 2019-07-02 17:00:34 +01:00
parent 272063abfd
commit 14a4a44e60
12 changed files with 42 additions and 6 deletions

View file

@ -433,7 +433,9 @@ int main( void )
}
mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg );
#if defined(MBEDTLS_DEBUG_C)
mbedtls_ssl_conf_dbg( &conf, my_mutexed_debug, stdout );
#endif
/* mbedtls_ssl_cache_get() and mbedtls_ssl_cache_set() are thread-safe if
* MBEDTLS_THREADING_C is set.