security: fix mbedtls_x509_crt_parse error
authorDan Mihai <Daniel.Mihai@microsoft.com>
Thu, 17 Aug 2017 20:20:16 +0000 (13:20 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Tue, 22 Aug 2017 01:01:09 +0000 (01:01 +0000)
commitfa2c5958f182c52ab05d3e40b0de55165671d66d
treebfa72feee135e9fb9ec2977e4d4f65acb4d6e69a
parent60c237df178b3fb031ea27e2b8b2ed1b74636db5
security: fix mbedtls_x509_crt_parse error

Add null terminator at the end of the cert, required by
mbedtls_x509_crt_parse.

This patch allows CT1.7.8.5 to make progress with its DTLS handshake.
Handshake fails later on, for different reasons, being investigated.

Change-Id: Iebfcf17be2661f080499961fbd259cef3b1c06d8
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
https://jira.iotivity.org/browse/IOT-2622
Reviewed-on: https://gerrit.iotivity.org/gerrit/21985
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Way Vadhanasin <wayvad@microsoft.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
resource/csdk/security/src/credresource.c