- set ACLs on the profile info file

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1637 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2003-11-24 10:21:36 +00:00
parent af462ab212
commit 22312dbe17
1 changed files with 5 additions and 0 deletions

View File

@ -2832,6 +2832,11 @@ sc_pkcs15init_write_info(sc_card_t *card, sc_profile_t *profile)
file->ef_structure = SC_FILE_EF_TRANSPARENT;
file->id = OPENSC_INFO_FILEID;
/* XXX Maybe we should move the file to the AppDF
* and protect updates using the SO PIN */
for (n = 0; n < SC_MAX_AC_OPS; n++)
sc_file_add_acl_entry(file, n, SC_AC_NONE, 0);
p = buffer;
end = buffer + sizeof(buffer);