Andreas Jellinghaus wrote: > Am Samstag 20 Februar 2010 08:32:30 schrieb Xiaoshuo Wu: > >> Then sc_pkcs15init_parse_info() could not parse the junks after the TLVs >> in file 4946, we also modified sc_pkcs15init_write_info() to cope with it. >> Would you please review the patches in my attachment , see if these >> changes are proper, thank you for any advice. >> Regards, Xiaoshuo >> > > thanks for the patches. > > do we need some flag mechanism to activate these changes with entersafe only, > or can we apply them to all cards? > > lets see what everyone else thinks about this, I don't know the > code well enough myself. >
I've committed slightly modified version of your patch to OpenSC, which should not harm the other card drivers. Thanks. Question to Xiaoshuo, just for my curiosity: what is the command history of your card before you have had this error? erasing, initialising, ... The 'sc_pkcs15init_parse_info' is called only once when creating a new PKCS#15 structure, and, imho, it could fail only in two cases: - when there were two card initializations, with the different profiles settings and without card erasing between (as for me it's hardly possible) - when content of the newly created file is the random bytes (as for me it's hardly imaginable). Kind wishes, Viktor. > _______________________________________________ > opensc-devel mailing list > [email protected] > http://www.opensc-project.org/mailman/listinfo/opensc-devel > > -- Viktor Tarasov <[email protected]> _______________________________________________ opensc-devel mailing list [email protected] http://www.opensc-project.org/mailman/listinfo/opensc-devel
