[IOT-1449] mbedTLS: Use wcslen instead of lstrlenW on Windows
authorKevin Kane <kkane@microsoft.com>
Wed, 12 Oct 2016 23:30:01 +0000 (16:30 -0700)
committerRandeep Singh <randeep.s@samsung.com>
Thu, 13 Oct 2016 07:54:27 +0000 (07:54 +0000)
commit840701a3c101081a103b3a431f3fe504e759e3ce
tree5b1e71ffeae5ba024415819d7355507e3aa1fa64
parent97c0bb82106bbd4a314d23420c17b291b17db1e2
[IOT-1449] mbedTLS: Use wcslen instead of lstrlenW on Windows

lstrlenW is not allowed in Windows Store applications. Use wcslen
instead.

Also fix a nearby narrowing size_t to int conversion to make sure
it's safe.

Change-Id: I14d37b6a0d6c82444f4733f5d54bd8173ca62b71
Signed-off-by: Kevin Kane <kkane@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13183
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit aa49bbd28a78a486df9568b3867a373100e92e2f)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13207
extlibs/mbedtls/ocf.patch