I am working with Ceres (FNMT WG10) card but I don't know if its relevant. I've been debugging and it always search only in pkcs15.profile. If I change my DF in the pkcs15.profile works perfect but I think it's not the right place to put it... I think in two options: search the corresponding profile or go back to the last code that was changed in this commit:
Timestamp: 08/20/08 05:41:20 (7 months ago) Author: aj Message: Add new entersafe driver for ePass 3000 tokens. Files: 1 modified trunk/src/pkcs15init/pkcs15-lib.c (3 diffs) What do you think?? Thanks On Tue, 2009-03-10 at 12:22 +0100, Fleblanc wrote: > Perhaps you can specify your own profile, so you can fixe exactly the > location of your file... > > François Leblanc. > > Marc Rios Valles a écrit : > > Hi, > > > > I am adapting the source code of a driver that works with opensc-0.11.4 > > to works with opensc-0.11.7. I am having problems with the function > > sc_pkcs15init_change_attrib and concretly with this lines: > > > > if (r >= 0) { > > sc_file_t *file; > > r = sc_profile_get_file_by_path(profile, &df->path, > > &file); <-- HERE IS MY PROBLEM > > if(r<0) return r; > > r = sc_pkcs15init_update_file(profile, card, > > file, buf, bufsize); > > free(buf); > > sc_file_free(file); > > } > > > > In the line I have marked the profile loaded is the default of > > opensc(pkcs15.profile) and my files are not in the same place. I don't > > know if this line is very necessary because we had in the past the > > following: > > > > if (r >= 0) { > > r = sc_pkcs15init_update_file(profile, card, > > df->file, buf, bufsize); > > free(buf); > > } > > > > And works ok... What should I do? > > > > Thank you very much > > > _______________________________________________ > opensc-devel mailing list > opensc-devel@lists.opensc-project.org > http://www.opensc-project.org/mailman/listinfo/opensc-devel -- Marc Rios Vallès m...@c3po.es C3PO, S.A. http://www.c3po.es C/ Alejandro Goicoechea, 6 Local 9 - 08960 St. Just Desvern, Barcelona Tel. 93 417 99 55 - Fax 93 253 12 80 _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel