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
-- 
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

Reply via email to