Thank you very much !

Problem is solved. I don't know why, the problem occured only in the
simulator (GSE)..

B.LUBEK

> -----Original Message-----
> From: Christophe Foesser [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 25, 2001 6:51 PM
> To: LUBEK, Benoît; [EMAIL PROTECTED]
> Subject: RE: [OCF] set PIN with vop
> 
> 
> Hi,
> 
> The Pin format seem to be correct, try to use 
> "OPSystem.getTriesRemaining()"
> to verify your pin is not blocked.
> If it's blocked use "unblock pin" on the CardManager after 
> authentication.
> 
> rgds,
> 
> -----Message d'origine-----
> De : LUBEK, Benoît [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi 14 juin 2001 14:25
> À : [EMAIL PROTECTED]
> Objet : [OCF] set PIN with vop
> 
> 
> 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.

Reply via email to