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.
*/
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