Changed if/rt to be space-delimited strings in CBOR encoding
authorErich Keane <erich.keane@intel.com>
Thu, 17 Sep 2015 22:48:18 +0000 (15:48 -0700)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Sat, 19 Sep 2015 16:45:28 +0000 (16:45 +0000)
commit429230b487fba8932272891065956f1154f0e177
treeaa5be68e435dd072f1f8e4aef5557b7851c5aed0
parentaec733797e8ddbfcce0e9b34be7ef2f4f569a950
Changed if/rt to be space-delimited strings in CBOR encoding

The Spec says that if/rt should be space-delimited values rather than
just an array of strings, so this changes all encodings of if and rt to
be space-delimited.

Also adds some unit tests to validate the defensive nature of this
reading.

Change-Id: Iebd1d5a215a06abb023bb1b33112dac1df3511a1
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2645
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
resource/csdk/stack/include/ocpayload.h
resource/csdk/stack/src/ocpayload.c
resource/csdk/stack/src/ocpayloadconvert.c
resource/csdk/stack/src/ocpayloadparse.c
resource/unittests/OCRepresentationEncodingTest.cpp