Hi !
This is not a OCF question but still I think some of you can help me.
I'm using a Gemplus GemXPresso 211 card, and I try to update the vop
GlobalPIN in my applet
I use this code :
private void setPIN(APDU apdu)
{
apdu.setIncomingAndReceive();
JCSystem.beginTransaction();
if (!OPSystem.setPin(apdu,ISO7816.OFFSET_CDATA))
{
JCSystem.commitTransaction();
ISOException.throwIt(Constants.SW_PIN_FAILED);
}
JCSystem.commitTransaction();
}
(I don't try to unwrap because I send the pin not enciphered.)
The problem is : the exception is always raised !
For the formating of the PIN in the apdu I used the EMV format described in
"verify pin" section (example : 24 12 34 ff ff ff ff ff)
Thank you for your help !
B.LUBEK
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.