Changes to PolicyEngine to support rowner and isop checks.
[platform/upstream/iotivity.git] / resource / csdk / security / src / dpairingresource.c
index 900509a..fdcf749 100644 (file)
@@ -748,3 +748,14 @@ exit:
     memcpy(gDpair->rownerID.id, prevId.id, sizeof(prevId.id));
     return ret;
 }
+
+OCStackResult GetDpairingRownerId(OicUuid_t *rowneruuid)
+{
+    OCStackResult retVal = OC_STACK_ERROR;
+    if (gDpair)
+    {
+        *rowneruuid = gDpair->rownerID;
+        retVal = OC_STACK_OK;
+    }
+    return retVal;
+}