X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fsecurity%2Finclude%2Finternal%2Fpstatresource.h;h=c021cb0d76d319b7c2b506c59dd4f1dde2717800;hb=3c093548382bb2542c87a67e6e5fa32552c29cb3;hp=c603f34c256705156e47ff34d17bfba3d9c5783a;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/security/include/internal/pstatresource.h b/resource/csdk/security/include/internal/pstatresource.h index c603f34..c021cb0 100644 --- a/resource/csdk/security/include/internal/pstatresource.h +++ b/resource/csdk/security/include/internal/pstatresource.h @@ -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