From: Peter M. <no...@gi...> - 2020-02-18 19:47:37
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: cd5c91b8efba5741a6046e4b82a6ecedfefd837f https://github.com/OpenSC/OpenSC/commit/cd5c91b8efba5741a6046e4b82a6ecedfefd837f Author: Peter Marschall <pe...@ad...> Date: 2020-02-18 (Tue, 18 Feb 2020) Changed paths: M src/libopensc/iso7816.c M src/libopensc/types.h Log Message: ----------- iso7816: extend iso7816_process_fci() * define file type SC_FILE_TYPE_UNKNOWN * explicitly set file->type to SC_FILE_TYPE_UNKNOWN for unkown files * store full-length file type attributes via sc_file_set_type_attr() * parse # of records for record-oriented EFs * parse record length for for EFs with fixed-size records Note: I am not sure, parsing the record length only for EFs with fixed- size records is the correct approach. My interpretation of the norm is slightly different, but it seems to be in-line what's currently in opensc: - there's a comment hinting at that interpretation - otherwise variable size records fail to be read in opensc-explorer So I leave it this way for now. |