Commit 4239a6c3 authored by Oleksii Beketov's avatar Oleksii Beketov Committed by Randeep

[IOT-2709] MOT

Multiple ownership enable

Change-Id: Ic6cff37ada8f84417c623bead93539f73d61b68d
Signed-off-by: default avatarOleksii Beketov <ol.beketov@samsung.com>
parent 633dc231
......@@ -2356,6 +2356,12 @@ static OCEntityHandlerResult HandlePostRequest(OCEntityHandlerRequest* ehRequest
}
res = CBORPayloadToCred(payload, size, &cred, &rownerId);
#ifdef MULTIPLE_OWNER
if (IsSubOwner(cred->eownerID) && !IsNilUuid(cred->eownerID))
{
memcpy(rownerId, cred->eownerID, sizeof(OicUuid_t));
}
#endif // MULTIPLE_OWNER
if (OC_STACK_OK == res)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment