Update secure resource related modules(SRM,OTM,SRP,CKM,unit tests,samples)
[platform/upstream/iotivity.git] / resource / csdk / security / include / internal / aclresource.h
index 564d23f..600b1f4 100644 (file)
@@ -57,10 +57,11 @@ const OicSecAcl_t* GetACLResourceData(const OicUuid_t* subjectId, OicSecAcl_t **
  * Caller needs to invoke 'free' when done using
  * returned string.
  * @param acl  instance of OicSecAcl_t structure.
+ * @param isIncResName decide whether or not to include the resource name in output.
  *
  * @retval  pointer to ACL in json format.
  */
-char* BinToAclJSON(const OicSecAcl_t * acl);
+char* BinToAclJSON(const OicSecAcl_t * acl, const bool isIncResName);
 
 
 /**
@@ -74,10 +75,11 @@ void DeleteACLList(OicSecAcl_t* acl);
 /**
  * This function installs a new ACL.
  * @param newJsonStr JSON string representing a new ACL.
+ * @param isIncResName if resource name is included into payload, it is true.
  *
  * @retval  OC_STACK_OK for Success, otherwise some error value
  */
-OCStackResult InstallNewACL(const char* newJsonStr);
+OCStackResult InstallNewACL(const char* newJsonStr, const bool isIncResName);
 
 
 #ifdef __cplusplus