Fixed sign-compare warning
authorGeorge Nash <george.nash@intel.com>
Thu, 20 Oct 2016 16:03:21 +0000 (09:03 -0700)
committerRick Bell <richard.s.bell@intel.com>
Mon, 24 Oct 2016 18:23:36 +0000 (18:23 +0000)
commitf41435f7ed2457eb878b0b15fa1b720a8f980006
treeb7010b916974968085c1151417cfe46e402ad92f
parentb5f676313ad8d36bd685e039f36466e1fe8ffc61
Fixed sign-compare warning

In the ParseChain function the bufLen and pos varaible were
changed from int to size_t.  Every location that ParseChain
is called is passing in a size_t as the bufLen an unsigned
type. The pos variable is never negative and should be the
same type as the bufLen.

While in the function the documentation was cleaned up and
comemnts were added to quickly identify the contents of the
pemCertHeader and pemCerFooter byte arrays. As well as clarify
the need of the goto `exit:` label when using the
CHECK_MBEDTLS_RET macro.

Change-Id: I1f063dddea29a2a00ae6e47c7b2240794bcaf5bb
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13519
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
resource/csdk/connectivity/src/adapter_util/ca_adapter_net_ssl.c