Corrected pointer arithmetic on void* variables.
Octet arrays were represented by void* and char* typed variables in
several areas of the CA layer. Use uint8_t* where appropriate to
address undefined pointer arithemetic on pointers to void. Code that
treated the octet arrays as strings (e.g. performed strcpy() on them)
was corrected as well. This addresses several major issues flagged by
SonarQube.
Change-Id: I8d5c57eafa0b0e394e0ee202df1bb7b67c7a59b1
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2034
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>