Hi all,
I have a Java 1.5 application, which use the opensc PKCS11 library
(opensc-pkcs11.so). It is impossible to access to the card by more
threads than one (and by more java processes) with lock_login set to
false. 
Due this, I decide, that the 'static CK_RV pkcs15_bind(struct
sc_pkcs11_card *p11card)' method of the framework-pkcs15.c should
propagate setting from the opensc.conf (concretely  app opensc-pkcs11 {
pkcs11 { lock_login } }) to the pkcs15.c 'int sc_pkcs15_bind(sc_card_t
*card, struct sc_pkcs15_card **p15card_out)' method and there should be
test before the 'sc_lock(card);' is called. 
Otherwise the parameter lock_login is unusable(!?), and I must
synchronize the thread access to the card and everytime called Login and
Logout. 
Is It correct? 

Thanx! 

Regards,
Petr Bunka



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to