Commit f869eb49 authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by Kevin Kane

ssl: fix compilation against non debug mbedtls

The function mbedtls_debug_set_threshold() is only available when
MBEDTLS_DEBUG_C is set. make the call depend on this condition.

Change-Id: I8158bc4c55b428167e36084e7a46359c269c5fc7
Signed-off-by: default avatarHauke Mehrtens <>
Reviewed-on: default avatarjenkins-iotivity <>
Reviewed-by: default avatarPhil Coval <>
Reviewed-by: default avatarKevin Kane <>
parent 7d1b3183
......@@ -1393,7 +1393,9 @@ static int InitConfig(mbedtls_ssl_config * conf, int transport, int mode)
#if !defined(NDEBUG) || defined(TB_LOG)
mbedtls_ssl_conf_dbg(conf, DebugSsl, NULL);
#if defined(MBEDTLS_DEBUG_C)
OIC_LOG_V(DEBUG, NET_SSL_TAG, "Out %s", __func__);
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment