Hi,

It seems that there is a mistake in the representation of the different
APDU commands cases in the class
com.gemplus.opencard.terminal.ExtendedCommandAPDU

In the last version of OCF it is (API doc):
.........
ExtendedCommandAPDU(byte cla, byte ins, byte p1, byte p2)
        Constructs an ISO 7816-4 case 1 APDU command as a ExtendedCommandAPDU object.

ExtendedCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte le)
        Constructs an ISO 7816-4 case 3 APDU command as a ExtendedCommandAPDU object.

ExtendedCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte[] data)
        Constructs an ISO 7816-4 case 2 APDU command as a ExtendedCommandAPDU object.

ExtendedCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte[] data, byte le)
Constructs an ISO 7816-4 case 3 APDU command as a ExtendedCommandAPDU object.
.........



According to ISO 7816-4 it should be : ......... ExtendedCommandAPDU(byte cla, byte ins, byte p1, byte p2) Constructs an ISO 7816-4 case 1 APDU command as a ExtendedCommandAPDU object.

ExtendedCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte le)                     
         
        Constructs an ISO 7816-4 case 2 APDU command as a ExtendedCommandAPDU object.

ExtendedCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte lc, byte[] data)
Constructs an ISO 7816-4 case 3 APDU command as a ExtendedCommandAPDU object.


ExtendedCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte lc, byte[] data, byte le)
Constructs an ISO 7816-4 case 4 APDU command as a ExtendedCommandAPDU object.
.........


The bug are :
-the missing lc (lc=length of the command data) in case 3 and 4m
-the case 3 was duplicated
-the case 4 was missing.

The bug is in the source file as well.

Regards
Eric


---
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