On Thu, 27 May 2010 17:13:15 +0800, Viktor TARASOV <viktor.tara...@opentrust.com> wrote:

Jean-Michel Pouré - GOOZE wrote:
On Thu, 2010-05-27 at 10:32 +0200, Viktor TARASOV wrote:

That's what I would suggest.


Okay. Too bad for users!!!

...

You mean to use the cards initialized with opensc-0.11.13 with the
current trunk ?
Normally no, but one can imagine some tool that re-writes the AODF
(default file-id '4401') and keeps existing objects.


I don't have the skills to write such a tool. Could it be done at
entersafe driver level?


Once more, one can imagine:
to add one more pkcs15init operation, say "sanity_check";
in the card's pkcs15init driver (entersafe) implement its card specific
version;
add 'sanity-check' operation to the 'pkcs15-init' tool.

Maybe maintainer of this driver can tell more .

Kind regards,
Jean-Michel

Kind wishes,
Viktor.
I figure out a solution, add an new option combination "--change-attributes pin --pin-flags local --id $pin_id" in pkcs15-init command, so one can add "local" pin-flag without reinitialize the card.

Here is the steps:
0.Apply the patch in my attachment.
1.Use "pkcs15-tool -D", get PIN's ID XX.
2.Run "pkcs15-init -A pin --pin-flags local -i XX", set the "local" pin-flag.

It's a bit shaggy, but straight.

Regards, Xiaoshuo

Attachment: trunk.4390.pin_flags.diff
Description: Binary data

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

Reply via email to