From: Hauke Mehrtens Date: Sat, 3 Dec 2016 23:18:37 +0000 (+0100) Subject: ssl: fix compilation against non debug mbedtls X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f869eb49605674f112b19e5e03e0e144bf389456;p=contrib%2Fiotivity.git 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: Hauke Mehrtens Reviewed-on: https://gerrit.iotivity.org/gerrit/15119 Tested-by: jenkins-iotivity Reviewed-by: Phil Coval Reviewed-by: Kevin Kane --- diff --git a/resource/csdk/connectivity/src/adapter_util/ca_adapter_net_ssl.c b/resource/csdk/connectivity/src/adapter_util/ca_adapter_net_ssl.c index 45764f2..9c6a048 100644 --- a/resource/csdk/connectivity/src/adapter_util/ca_adapter_net_ssl.c +++ b/resource/csdk/connectivity/src/adapter_util/ca_adapter_net_ssl.c @@ -1393,8 +1393,10 @@ 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) mbedtls_debug_set_threshold(MBED_TLS_DEBUG_LEVEL); #endif +#endif OIC_LOG_V(DEBUG, NET_SSL_TAG, "Out %s", __func__); return 0; }