[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pkinit integration with smart card




6 sep 2006 kl. 00.04 skrev Douglas E. Engert:

> Love Hörnquist Åstrand wrote:
>
>> The standard say one login is enough for all session since they  
>> all  share
>> the same loginstate.
>> That said, I can belive you that this is the case, I've commited  
>> code  that should
>> deal with by keeping the session around. See next snapshot  
>> generated in
>> a couple of hours.
>
> Version 2.01 C_CloseSesion says: "When a sesion is closed, all session
> objects created by the sesion are destroyed automaticly, even if the
> application has other sessions "using" the objects".

I was more thinking about the login state, ever relised that closeing of
session change the objects too.

> I would infer that this may be the problem with the hKey object,
> as it was found using one session then was trying to be used in the
> other session, and the two sesisons where no open at the same time
> either.
>
> Sounds like you change should address this problem, and I hope .

I would guess so to, I changed the soft-pkcs11 to have
the close-session-invalidates-object behavior and with the simple
testing I did the new code worked.

Thanks,
Love