security: Example support SVR ACL v2 and fix PS 89/21489/9
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Tue, 29 Aug 2017 15:11:59 +0000 (17:11 +0200)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Fri, 15 Sep 2017 23:28:18 +0000 (23:28 +0000)
commitcb8e3b44a20b0e2ed98679ad41aa541dcd32d2b0
tree69dc983a80e93fc7185a894308a2192c6ef9781a
parent23727ce24466554a88d6037786b7774feb6eec23
security: Example support SVR ACL v2 and fix PS

Update json file to support ACL from CSDK, inspired by:
resource/csdk/stack/samples/linux/secure/oic_svr_db_client_devowner.json
resource/csdk/stack/samples/linux/secure/oic_svr_db_server.json

Also add persistent storage to overload security dat file.

Make example working again using:

  ./simpleserver 2

  ./simpleclient
  Observe registration action is successful
  OBSERVE RESULT:
        SequenceNumber: 0
        state: true
        power: 55
        name: John's light

Note those .dat files were generated from master branch
using json2cbor tool automatically,
1.3-rel does not have the scanner generator yet.

Bug: https://jira.iotivity.org/browse/IOT-2443
Change-Id: Id457fedd74bf7540c2a223e4ab079076af1f2134
Origin: https://gerrit.iotivity.org/gerrit/#/c/21487/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
resource/examples/oic_svr_db_client.dat
resource/examples/oic_svr_db_client.json
resource/examples/oic_svr_db_server.dat
resource/examples/oic_svr_db_server.json
resource/examples/simpleserver.cpp