[IOT-1719] Restore empty UUID string conversion
authorDan Mihai <Daniel.Mihai@microsoft.com>
Fri, 30 Dec 2016 02:01:40 +0000 (18:01 -0800)
committerGreg Zaverucha <gregz@microsoft.com>
Mon, 9 Jan 2017 18:43:25 +0000 (18:43 +0000)
commit4b2ca378a7af8409983fefa7effffe80b59d1dbb
tree2732f79875781ff297b5028affa744fa93fd5416
parent642103bc7ae566f07a38386d6c603f656cae63e5
[IOT-1719] Restore empty UUID string conversion

1. Empty strings were being rejected after commit
7c494d7b1a90349f353bf8f3d0f6cd17fe31df14.

2. Add unit test to catch this kind of regression.

3. Improve error logging for this kind of json2cbor failures.

Change-Id: I4608638a5ef952c2949b47ec21e7f610d50f3b82
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16019
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Greg Zaverucha <gregz@microsoft.com>
resource/csdk/security/src/srmutility.c
resource/csdk/security/tool/json2cbor.c
resource/csdk/security/unittest/srmutility.cpp