ssl: enable usage of patched mbed functions conditionally
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 3 Dec 2016 23:15:21 +0000 (00:15 +0100)
committerGreg Zaverucha <gregz@microsoft.com>
Mon, 9 Jan 2017 19:25:07 +0000 (19:25 +0000)
commitb448470ec53d1d816131fa2a93eda9398beb79de
treecc342c9458628076d61148d9b14befd413d00f0e
parent4b2ca378a7af8409983fefa7effffe80b59d1dbb
ssl: enable usage of patched mbed functions conditionally

Only activate support for the MBEDTLS_KEY_EXCHANGE_ECDH_ANON_ENABLED
cipher suite when this is actually available in mbedtls.
This makes it possible to compile IoTivity against a unpatched mbedtls
version.

Change-Id: Ic56d7faf7597cc5dc08f9d55be29dde898949609
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15121
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Greg Zaverucha <gregz@microsoft.com>
resource/csdk/connectivity/src/adapter_util/ca_adapter_net_ssl.c