A small other note:

When I want to change the User PIN not only by using --init-pin but by
using -c, I need a read/write sesseion:

--snip--

                case 'c':
                        do_change_pin = 1;
                        need_session |= CKF_SERIAL_SESSION; /* no need for
a R/W session */
                        need_session |= NEED_SESSION_RW;
                        action_count++;
                        break;
--snip--



Regards
Cornelius

On Do, 30.03.2006, 23:21, Cornelius Koelbel sagte:
> Hello,
>
> I liked the pkcs11-tool very much and used it with aladdin's own
> pkcs11-lib.
> But I could not manage to initialize the token and i could not change the
> pin.
>
> The Aladdin eToken can only be initialized after having logged in as a
> user and having closed this session again.
>
> The PIN can only be changed, when logged in as a User before.
>
> So I wrote some small patches that worked for, so I could now initialize
> the token and change the PIN.
> I am not a real programmer and I guess the patches may not be valid for
> other tokens. Maybe for the initilization-patch there should be an
> if-statement or a commandline switch, that activates this code.
>
> Take a look at it and think of it. If there are any questions I will be
> pleased to answer them...
>
> The patches are against pkcs11-tool.c version 0.10.1.
>
> Kind regards
> Cornelius_______________________________________________
> opensc-devel mailing list
> opensc-devel@lists.opensc-project.org
> http://www.opensc-project.org/mailman/listinfo/opensc-devel

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

Reply via email to