Hi Ludovic,

OK, that works, thanks!

> Why don't you just use the default strings?

That's because there are several PINs, so we have to display
which PIN the user should enter. So just before the actual PIN
command, we do set the strings to be displayed by the reader.

And also because the PIN Change command is used/abused to
do an Unblock (which doesn't seem to be supported in CCID).
If works fine, except that you should ask for the PUK instead
of for the current PIN, of course.

And finally because we need Portugese messages:-)

Cheers,
Stef

Ludovic Rousseau wrote:

On 29/01/07, Stef Hoeben <[EMAIL PROTECTED]> wrote:
> Hi,

Hello,

> According to [1], Gemplus GemPC PIN PAD LCD display is supported.

That means that the strings are set automatically depending on the
LANG environment variable when pcscd is started.
If you have LANG=fr_* you will have french strings for example.
The driver supports fr, de, es, it and en as the default value.

> However, trying an SCardControl() with
>   #define IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE    SCARD_CTL_CODE(1)
> returns an 0x80100016 = SCARD_E_NOT_TRANSACTED error.
> (Doing an SCardControl(CM_IOCTL_GET_FEATURE_REQUEST) works fine.)

By default an application is _not_ allowed to call
IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE since this call can do anything.
It is a security issue already discussed on this list 2-3 years ago
when I first implemented this feature.

You have to edit the Info.plist file and set the
DRIVER_OPTION_CCID_EXCHANGE_AUTHORIZED bit of ifdDriverOptions.

> Attached are a little test prog and it's output.

With the Info.plist modification your test program works fine.

You can note that since IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE is
restricted by default you can't read the reader firmware string
either. But your program does not display an error message in that
case.

> Any idea what we're doing wrong? Or even better how to display
> strings on the GemPC reader?

Why don't you just use the default strings?

Bye,

--
  Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle


_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to