I can create, read, and delete a binary object created with the following policies (below). However updating the file with Se05x_API_WriteBinary() function fails. However, if I create a binary object without any policies I can update it with Se05x_API_WriteBinary() . Is this the expected behavior with polices?
Dean G.
static sss_policy_u file_withPol = {
.type = KPolicy_File,
/*Authentication object based on SE05X_AUTH*/
.auth_obj_id = 0, // AES authentication
.policy = {
/* binary file policy*/
.file = {
/** Allow to write the object */
.can_Write = 1,
/** Allow to read the object */
.can_Read = 1
}
}
};
/* Common rules */
static sss_policy_u file_common = {
.type = KPolicy_Common,
/*Authentication object based on SE05X_AUTH*/
.auth_obj_id = 0, // AES authentication
.policy = {
.common = {
/*Secure Messaging*/
.req_Sm = 0,
/*Policy to Delete object*/
.can_Delete = 0,
/*Forbid all operations on object*/
.forbid_All = 0,
}
}
};
Hi @deang ,
How about setting .can_Delete = 1?
Please kindly let me know if the problem is still there.
Have a great day,
Kan
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------