Add to checking logic to set subject of cred in case of NULL or *
authorjs126.lee <js126.lee@samsung.com>
Thu, 9 Feb 2017 12:16:51 +0000 (21:16 +0900)
committerRandeep Singh <randeep.s@samsung.com>
Thu, 16 Feb 2017 04:28:33 +0000 (04:28 +0000)
commitdf063552a4dfab53662653566fe73ed491820aaf
tree248e5740f8de3d016a6cd727d88e6446e963370c
parentf869eb49605674f112b19e5e03e0e144bf389456
Add to checking logic to set subject of cred in case of NULL or *

Issue : If deviceuuid is null and required pre-install certificate in SVR DB,
        it is impossible to set a subject of SIGNED_ASYMMETRIC_KEY type (certificate).

According to OCF Security Spec and Raml, subject of Cred allows UUID format only,
so CTT decides a failure in case of wildcard(*).
But, it is not clear how to set a subject of cred in case of SIGNED_ASYMMETRIC_KEY on spec.

So, this patch set it with own deviceuuid in case of NULL or wildcard,
because own deviceuuid is only UUID a device knows at all time.

Patch 1,2: Upload patch
Patch 3 : Set subject of cred with own deviceuuid in case of NULL or wildcard
Patch 4: Apply review comment
Patch 5-8 : Re-trigger jenkins build

Change-Id: Idb09357a821be81bb9f05489ebb40403e66c3514
Signed-off-by: js126.lee <js126.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17153
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/security/provisioning/src/secureresourceprovider.c
resource/csdk/security/src/credresource.c