CRED payload conversion from JSON to CBOR
authorHabib Virji <habib.virji@samsung.com>
Mon, 22 Feb 2016 16:04:11 +0000 (16:04 +0000)
committerHabib Virji <habib.virji@samsung.com>
Sun, 13 Mar 2016 12:47:09 +0000 (12:47 +0000)
commitc1385693f75263854c1938551fe37cbc0d313512
tree6ebcd3690d1fc9b6484a741e04656db502c08566
parentaa5f4de4c1f08f1ae20dce9c4bc22ff6ba409e6b
CRED payload conversion from JSON to CBOR

Converts CRED payload from JSON to CBOR directly using tinycbor library.
- CRED unit test has been updated to handle the changes.
- Unit test related functions are defined in security_internals.
- Parameter which were passed as char * has been converted to uint8_t as they were later converted to base64.
- All the usage and base64 has been removed.

Change-Id: I159d46f8500c1880b49a3acbcfc59cfa0c6da4f0
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5117
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5793
resource/csdk/connectivity/api/casecurityinterface.h
resource/csdk/security/include/internal/credresource.h
resource/csdk/security/include/internal/security_internals.h
resource/csdk/security/include/securevirtualresourcetypes.h
resource/csdk/security/provisioning/src/credentialgenerator.c
resource/csdk/security/provisioning/src/ownershiptransfermanager.c
resource/csdk/security/provisioning/src/secureresourceprovider.c
resource/csdk/security/src/credresource.c
resource/csdk/security/src/psinterface.c
resource/csdk/security/unittest/credentialresource.cpp