Removed the 'crts' field from 'sc_acl_entry' type since:

- its definition is specific to the IAS-ECC card type
- its presence can not be assumed since it is read from non-mandatory SE type of an SDO
- it is currently not used anywhere in the code
This commit is contained in:
Zoltan Kelemen 2020-07-05 05:44:39 +02:00 committed by Jakub Jelen
parent 376cc2d910
commit aca0d08e29
2 changed files with 3 additions and 6 deletions

View File

@ -555,13 +555,13 @@ const sc_acl_entry_t * sc_file_get_acl_entry(const sc_file_t *file,
{
sc_acl_entry_t *p;
static const sc_acl_entry_t e_never = {
SC_AC_NEVER, SC_AC_KEY_REF_NONE, {{0, 0, 0, {0}}}, NULL
SC_AC_NEVER, SC_AC_KEY_REF_NONE, NULL
};
static const sc_acl_entry_t e_none = {
SC_AC_NONE, SC_AC_KEY_REF_NONE, {{0, 0, 0, {0}}}, NULL
SC_AC_NONE, SC_AC_KEY_REF_NONE, NULL
};
static const sc_acl_entry_t e_unknown = {
SC_AC_UNKNOWN, SC_AC_KEY_REF_NONE, {{0, 0, 0, {0}}}, NULL
SC_AC_UNKNOWN, SC_AC_KEY_REF_NONE, NULL
};
if (file == NULL || operation >= SC_MAX_AC_OPS) {

View File

@ -204,9 +204,6 @@ struct sc_crt {
typedef struct sc_acl_entry {
unsigned int method; /* See SC_AC_* */
unsigned int key_ref; /* SC_AC_KEY_REF_NONE or an integer */
struct sc_crt crts[SC_MAX_CRTS_IN_SE];
struct sc_acl_entry *next;
} sc_acl_entry_t;