OpenPGP: Correct adding read access to ACL.

This commit is contained in:
hongquan 2012-06-02 16:51:10 +07:00 committed by Viktor Tarasov
parent e269907e1d
commit df39590aa4
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ pgp_attach_acl(sc_card_t *card, sc_file_t *file, struct do_info *info)
key_ref = 0x83;
}
if (method != SC_AC_NONE || key_ref != 0) {
sc_file_add_acl_entry(file, SC_AC_OP_READ, SC_AC_CHV, key_ref);
sc_file_add_acl_entry(file, SC_AC_OP_READ, method, key_ref);
}
}