[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 05:25:32 +0000 (05:25 +0000)
commitaa49bbd28a78a486df9568b3867a373100e92e2f
tree482e367e158e6580fbe5d81985725801da0f7191
parent3c07416db2f0bd587fbe9e1619d0fe954bb6cfc1
[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>
extlibs/mbedtls/ocf.patch