Add validation to resource type/interface addition 05/2605/5
authorErich Keane <erich.keane@intel.com>
Wed, 16 Sep 2015 21:33:19 +0000 (14:33 -0700)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Sat, 19 Sep 2015 12:27:16 +0000 (12:27 +0000)
commit4e72326cbbd112f052e8dc64cf687751a5fbe9ad
tree2f1028cb333f4bf8c3ec7425a7cd09884c760396
parent08e0fc971586bd2ec85e6f3f12c261706cc2e13e
Add validation to resource type/interface addition

The functions that add resource type/interfaces to the resources were
not correctly validating them to the RFC.  This commit adds validation
to these such that RFC6690 is enforced, and gives the developer
immediate/early warning of invalid values.

Change-Id: If04f72c1aa69ec2f9fbc83d849a503c2ee86f502
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2605
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
resource/csdk/stack/src/ocstack.c
resource/unittests/OCResourceResponseTest.cpp