Hello, It has been a while since I commented that we were in need of a sc_reset function in OpenSC.
I promised an sc_reset patch, and I attach it to your consideration. The patch is against yesterday's SVN code and only includes PC/SC backend implementation. As you can see, a locked flag is kept, because SCardReconnect clears transaction imformation, and pcsc_lock is (re)called if pcsc_reset was called in the middle of a pcsc_lock/pcsc_unlock pair. And pcsc_reconnect accepts an extra parameters to be reused inside pcsc_reset. sc_reset just calls an extra reader operation called reset. I haven't implemented ctapi and openct code since i can't test them right now, but it looks like if ctapi had already ctapi_reset. If any changes need to be made in order to include this patch, please tell me. Thanks very much, -- 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