Re: [opensc-devel] sc_reset

2006-03-23 Thread Josep Monés Teixidor
On Wed, 2006-03-22 at 22:44 +0100, Nils Larsch wrote: > > slightly modified and applied. Please test a recent snapshot. 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 __

Re: [opensc-devel] sc_reset

2006-03-22 Thread Nils Larsch
Josep Monés Teixidor wrote: Hello Nils, On Tue, 2006-03-21 at 20:38 +0100, Nils Larsch wrote: SC_SUCCESS is better than 0 [] if the reader doesn't support this operation this function MUST return a error like SC_ERROR_NOT_SUPPORTED (and of course applications using this features must be

Re: [opensc-devel] sc_reset

2006-03-21 Thread Josep Monés Teixidor
On Wed, 2006-03-22 at 01:41 +0100, Josep Monés Teixidor wrote: > I hope you like this second try. > Hello, Due to some cleanup before posting my first patch i overlooked that i had changed SCARD_LEAVE_CARD to SCARD_RESET_CARD in SCardReconnect, which would reset again card if driver detected th

Re: [opensc-devel] sc_reset

2006-03-21 Thread Josep Monés Teixidor
Hello Nils, On Tue, 2006-03-21 at 20:38 +0100, Nils Larsch wrote: > > SC_SUCCESS is better than 0 > [] > if the reader doesn't support this operation this function MUST > return a error like SC_ERROR_NOT_SUPPORTED (and of course applications > using this features must be able to handle this

Re: [opensc-devel] sc_reset

2006-03-21 Thread Nils Larsch
Josep Monés Teixidor wrote: On Tue, 2006-03-21 at 10:45 +0100, Josep Monés Teixidor wrote: 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. Sorry! I forgot the patch ;) some first c

Re: [opensc-devel] sc_reset

2006-03-21 Thread Josep Monés Teixidor
Hello Martin, First of all thanks for your quick response. On Tue, 2006-03-21 at 13:04 +0200, Martin Paljak wrote: > I recall your original problem was that a dynamic driver got removed > on last sc_unlock() ? No... I was in need of a sc_reset, but since I didn't have it, i decided to try sc_u

Re: [opensc-devel] sc_reset

2006-03-21 Thread Martin Paljak
On 21.03.2006, at 11:45, Josep Monés Teixidor wrote: It has been a while since I commented that we were in need of a sc_reset function in OpenSC. I recall your original problem was that a dynamic driver got removed on last sc_unlock() ? This seems odd and useless for me (Nils, you deal with

Re: [opensc-devel] sc_reset

2006-03-21 Thread Josep Monés Teixidor
On Tue, 2006-03-21 at 10:45 +0100, Josep Monés Teixidor wrote: > 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. Sorry! I forgot the patch ;) Regards, -- Josep Monés [EMAIL PROTE

[opensc-devel] sc_reset

2006-03-21 Thread Josep Monés Teixidor
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