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