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

It seems like a bad idea to blindly use the first app listed in EF(DIR)


_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to