OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
[Muscle] Two SCardControls in a row in order to use a transport pin

From: Mathias Tausig (mtausigfsmat.at)
Date: Mon Jun 02 2008 - 09:31:33 CDT


Hy!

I am creating a smartcard which uses a transport pin to activate its
regular pin (and puk). At the moment, I first send a VERIFY command on the
transport pin and after that was succesful, I can use CHANGE REFERENCE
DATA on the normal PIN. I use the secure pin entry capability with
SCardControl.

My problem is: The transport pin must have a usecount value of just 1, so
if I make some error upon entering the regular pin (like a typo upon
confirmation, or pressing cancel) the transport pin and with it the rest
of the card is irreversibly blocked.

What I would need is to somehow be able to send both SCardControl commands
in a bulk only after transport pin plus the desired new pin has been
entered fully. This seems to be possible (I have got a little tool from
Siemens (the card's manufacturer) which does just that, at least under
windows)., but I can't find anything in the pcsc-lite or the pc/sc
documentation.

cheers
Mathias

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle