Hello OpenSC developers,

While working on a dynamic card driver (and opensc 0.10.1) we've faced
the problem of performing a reset on a smart card, operation which we
need in our environment.

Calling sc_unlock and sc_lock in sequence would reset the card, but also
unload the driver, so it's no solution to our problem.

We think that the best solution is to implement a sc_reset in
libopensc/card.c and the corresponding pcsc_reset (using SCardReconnect
with SCARD_RESET_CARD), ctapi_reset, openct_reset operations.

I can provide a sc_reset and pcsc_reset implementation if you think it's
ok to proceed this way.

Or perhaps there's a way to reset the card we have overlooked.

Any comments will be very helpful.

Thanks in advance,

-- 
Josep Monés
[EMAIL PROTECTED]
C3PO, S.L.
http://www.c3po.es
C/ Bertran, 113  -  08023 Barcelona
Tel. 93 417 99 55  -  Fax 93 253 12 80

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

Reply via email to