[mbedtls] disable debug by default (#3217)

This commit is contained in:
Jonathan Hui
2018-10-26 13:05:28 -07:00
committed by GitHub
parent 34c6af0789
commit 980097c2ef
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -45,6 +45,8 @@ python --version || die
[ $BUILD_TARGET != scan-build ] || {
./bootstrap || die
export CPPFLAGS="-DMBEDTLS_DEBUG_C"
scan-build ./configure \
--enable-application-coap \
--enable-application-coap-secure \
+3
View File
@@ -162,8 +162,11 @@ otError Dtls::Start(bool aClient,
MBEDTLS_ENTROPY_SOURCE_STRONG);
VerifyOrExit(rval == 0);
#ifdef MBEDTLS_DEBUG_C
// mbedTLS's debug level is almost the same as OpenThread's
mbedtls_debug_set_threshold(OPENTHREAD_CONFIG_LOG_LEVEL);
#endif
otPlatRadioGetIeeeEui64(&GetInstance(), eui64.m8);
rval = mbedtls_ctr_drbg_seed(&mCtrDrbg, mbedtls_entropy_func, &mEntropy, eui64.m8, sizeof(eui64));
VerifyOrExit(rval == 0);
-1
View File
@@ -70,7 +70,6 @@ __inline int windows_kernel_snprintf(char * s, size_t n, const char * format, ..
#define MBEDTLS_CIPHER_C
#define MBEDTLS_CMAC_C
#define MBEDTLS_CTR_DRBG_C
#define MBEDTLS_DEBUG_C
#define MBEDTLS_ECJPAKE_C
#define MBEDTLS_ECP_C
#define MBEDTLS_ECP_DP_SECP256R1_ENABLED