[opensc-devel] Do not hardcode 3F005015

2006-09-14 Thread Ludovic Rousseau
Hello, I am trying to use a PKCS#15 using OpenSC and I discovered that OpenSC hardcodes "3F005015" in src/libopensc/pkcs15.c. Unfortunately my card uses "3F005000" instead. This path is available in EF(DIR) and is already parsed by OpenSC so why not use it? The patch is really simple (maybe too

[opensc-devel] do not always fail when SC_ERROR_SECURITY_STATUS_NOT_SATISFIED?

2006-09-14 Thread Ludovic Rousseau
Hello, My PKCS#15 card has some DF protected by a PIN. So when __sc_pkcs15_search_objects() try to read them the card sends a SC_ERROR_SECURITY_STATUS_NOT_SATISFIED. The problem is that this happens in the C_Initialize() so very early in the process and the PIN has no chance to be submitted at t

Re: [opensc-devel] Do not hardcode 3F005015

2006-09-14 Thread Chaskiel M Grundman
- 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 p15ca