[opensc-devel] Bug in pcsc-reader

2009-04-17 Thread Marc Rios Valles
Hi, I think we (C3PO) have discovered a bug in the file pcsc-reader.c. We are developing a card driver that needs to call 2 times each execution to sc_reset because its a card that works under secure_channel and we need to assure that we break the secure channel befor we recreate it. If I

Re: [opensc-devel] Bug in pcsc-reader

2009-04-17 Thread Martin Paljak
Hi. There was a bug in reader-pcsc.c, which made pcsc_disconnect leave the card as is, when it was supposed to reset the card. Fixed this in r3683. Another change to pcsc_disconnect could be changing SCARD_RESET_CARD to SCARD_UNPOWER_CARD. pcsc_reconnect uses unpower (for protocol forcing

Re: [opensc-devel] Bug in pcsc-reader

2009-04-17 Thread Ludovic Rousseau
2009/4/17 Marc Rios Valles m...@c3po.es: Hi, Hello, I think we (C3PO) have discovered a bug in the file pcsc-reader.c. We are developing a card driver that needs to call 2 times each execution to sc_reset because its a card that works under secure_channel and we need to assure that we break

Re: [opensc-devel] Bug in pcsc-reader

2009-04-17 Thread Marc Rios Valles
Hi Martin, I have test the last trunk and has the same behavior. The reason of the two reset was a bad access of tokendD to the card that provoked to broke the trusted channel and the PIN wasn't presented correctly. To workaround this bad access we decided to create first the trusted channel,

Re: [opensc-devel] Bug in pcsc-reader

2009-04-17 Thread Marc Rios Valles
Hi ludovic, I have try it with versions 1.4.2. and 1.5.2, the two versions available on the web of pcsc and it's the same behavior. I'm doing the tests with GNU/Linux. Do you need more info? Thanks -- Marc Rios Vallès m...@c3po.es C3PO, S.A. http://www.c3po.es C/ Alejandro Goicoechea, 6

[opensc-devel] SCA builds

2009-04-17 Thread Marc Rios Valles
Hi to everybody, I'm trying to make a package of SCA with the lastest trunk changes because I need it for a project. I've read this guide [http://www.opensc- project.org/sca/wiki/WikiStart#SourceCode] and this[ http://www.opensc-project.org/sca/wiki/OpenscTokend]. I amb executing the make

Re: [opensc-devel] Bug in pcsc-reader

2009-04-17 Thread Ludovic Rousseau
2009/4/17 Marc Rios Valles m...@c3po.es: I have try it with versions 1.4.2. and 1.5.2, the two versions available on the web of pcsc and it's the same behavior. I'm doing the tests with GNU/Linux. Do you need more info? How can I reproduce your problem? The best you can do is provide a short

Re: [opensc-devel] SCA builds

2009-04-17 Thread JP Szikora
Marc Rios Valles a écrit : Hi to everybody, I'm trying to make a package of SCA with the lastest trunk changes because I need it for a project. I've read this guide [http://www.opensc-project.org/sca/wiki/WikiStart#SourceCode] and this[