for identify a secure channel connection.
Change-Id: I91caf27ba7b08ee69623a960bb8df4da0acfefd9
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13809
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
// Copy the subjectID
OicUuid_t subjectId = {.id = {0}};
- OicUuid_t nullSubjectId = {.id = {0}};
memcpy(subjectId.id, requestInfo->info.identity.id, sizeof(subjectId.id));
-
- // if subject id is null that means request is sent thru coap.
- if (memcmp(subjectId.id, nullSubjectId.id, sizeof(subjectId.id)) != 0)
+ if (endPoint->flags & CA_SECURE)
{
OIC_LOG(INFO, TAG, "request over secure channel");
isRequestOverSecureChannel = true;