mirror of
https://github.com/espressif/openthread.git
synced 2026-09-03 07:40:10 +00:00
set mbedTLS debug level according to that of OpenThread (#1916)
This commit is contained in:
@@ -103,8 +103,8 @@ otError Dtls::Start(bool aClient, ConnectedHandler aConnectedHandler, ReceiveHan
|
||||
mbedtls_ctr_drbg_init(&mCtrDrbg);
|
||||
mbedtls_entropy_init(&mEntropy);
|
||||
|
||||
mbedtls_debug_set_threshold(4);
|
||||
|
||||
// mbedTLS's debug level is almost the same as OpenThread's
|
||||
mbedtls_debug_set_threshold(OPENTHREAD_CONFIG_LOG_LEVEL);
|
||||
otPlatRadioGetIeeeEui64(GetInstance(), eui64.m8);
|
||||
rval = mbedtls_ctr_drbg_seed(&mCtrDrbg, mbedtls_entropy_func, &mEntropy, eui64.m8, sizeof(eui64));
|
||||
VerifyOrExit(rval == 0);
|
||||
|
||||
Reference in New Issue
Block a user