On 14/09/06, Chaskiel M Grundman <[EMAIL PROTECTED]> wrote:
> - sc_format_path("3F005015", &p15card->file_app->path); > + /* use the path found in EF(DIR) */ > + if (card->app_count > 0) > + p15card->file_app->path = card->app[0]->path; > + else > + sc_format_path("3F005015", &p15card->file_app->path); The code immediately below replaces p15card->file_app->path if sc_find_pkcs15_app finds a compatible app. If that's not happening, then you need to check/update the apps array in dir.c to make sure it includes the oid of your app.
Exact. I added the application OID in apps[] and it now works without my patch.
It seems like a bad idea to blindly use the first app listed in EF(DIR)
That is exactly why I asked for comments on my patch :-) Thanks, -- Dr. Ludovic Rousseau _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel