replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / resource / csdk / security / include / internal / pstatresource.h
index c603f34..c021cb0 100644 (file)
@@ -64,6 +64,19 @@ OCStackResult DeInitPstatResource();
  OCStackResult CBORPayloadToPstat(const uint8_t *cborPayload, const size_t cborSize,
                                   OicSecPstat_t **pstat);
 
+#ifdef MULTIPLE_OWNER
+/**
+ * Function to check the pstat access of SubOwner
+ *
+ * @param[in] cborPayload CBOR payload of pstat
+ * @param[in] size Byte length of cborPayload
+ *
+ * @return ::true for valid access, otherwise invalid access
+ */
+bool IsValidPstatAccessForSubOwner(const uint8_t *cborPayload, size_t size);
+#endif
+
+
 /** This function deallocates the memory for OicSecPstat_t.
  *
  * @param pstat is the pointer to @ref OicSecPstat_t.
@@ -100,6 +113,15 @@ OCStackResult GetPstatRownerId(OicUuid_t *rowneruuid);
  */
 bool GetPstatIsop();
 
+/**
+ * Internal function to change pastat resource to Ready for Normal Operation.
+ *
+ * @param newROwner new owner
+ *
+ * @retval ::OC_STACK_OK for Success, otherwise some error value
+ */
+OCStackResult SetPstatSelfOwnership(const OicUuid_t* newROwner);
+
 #ifdef __cplusplus
 }
 #endif