security: Add roles cert null terminator 25/22125/3
authorDan Mihai <Daniel.Mihai@microsoft.com>
Fri, 25 Aug 2017 07:10:21 +0000 (00:10 -0700)
committerAlex Kelley <alexke@microsoft.com>
Wed, 6 Sep 2017 18:31:43 +0000 (18:31 +0000)
commit05ac9c784232d5166670906a9b13da7a4cd7d096
treeeed91df14fb29ab4bb2c1799d086aaf7c58076a4
parent197912ad40ada5af7840a71e3fd492cf866f9850
security: Add roles cert null terminator

mbedtls_x509_crt_parse requires null string terminator to determine
the cert format.

This patch allows CT1.7.8.5 to make progress. This test case still
fails later, because CTT posts an entire chain to /roles, and
IoTivity expects just one Role cert. This failure is still being
investigated.

Change-Id: I769cb104e43e4dc8d18b05dfb3851e5f4921fd00
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Bug: https://jira.iotivity.org/browse/IOT-2648
resource/csdk/security/src/rolesresource.c