|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Lionel Victor (Lionel.VICTOR
gemplus.com)Date: Tue Mar 06 2001 - 14:03:34 CST
David Corcoran wrote:
>
> Hello,
>
> Well, I have written a hot_plug plugin for pcsc-lite for USB and a quick
> driver for a USB reader. I will probably make a release of the new
> pcsc-lite with USB support next week.
>
> Also, I'm going to begin releasing RPM's and source from the website and I
> have about 5 different test platforms. Is there anyone out there that
> would like to provide a PC/SC API automated test that tries to send bogus
> and non-bogus commands to the PC/SC API and does it also under Windows ?
> I feel that I'm a bit too biased to create this test and it would really
> help checking builds before release.
I can't promise I will find the time to build a full testing program but
here is a little contribution :
I have a small program (in attachment) that :
- connects to a reader and shares its connection.
- reconnects to the same reader performing a reset (but still shares the
reader)
- set a transaction on the reader
- waits a fair amount of time (15 sec)
- sends some data
- end the transaction and leave the card untouched...
- closes up every thing (connection, context, etc...) but leave the card
untouched.
Then when I run this piece of code concurently. (say A first then B one
or 2 seconds after A) :
- B gives up with setting up the transaction as A has a lock on the
reader (timeout)
- however B has successfully reseted the card with reconnect()
- A wakes up and tries to send data but complains the reader has gone
reset (which is true)...
Two questions about this :
- shouldn't Reconnect() fails with E_SHARING_VIOLATION when B attempt to
reconnect and reset a temporarily locked reader ?
- does Windows behaves in a similar way ? <- if so then I suppose it is
a normal feature but still what is allowed/disallowed while a
transaction is on is fuzzy.
...
This mail is already long enough so I believe I can consume some extra
bytes and add a few words to appologize for being so descriptive... most
of you have probably hit the delete button already... many thanks to
those who didn't ;o)
-- Lionel VICTOR - Security Engineer, Gemplus Software.
- text/x-c++src attachment: test.cc
*************************************************************** Linux Smart Card Developers - M.U.S.C.L.E. (Movement for the Use of Smart Cards in a Linux Environment) http://www.linuxnet.com/smartcard/index.html ***************************************************************
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]