2007/10/10, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> Hello all,

hello,

> We came across various problems with PCSCLite in combination with serial
> numbers.
> Our serial numbers are 32 byte long and along with the readername add up to
> more than MAX_READERNAME, so the serial number is cut off by snprintf()
> (hotplug_libusb.c/line: 514).
> It's not only a cosmetical problem, it also has various aftereffects:
>
> * PCSCLite is unable to remove the reader from its readerlist after
> unplugging the reader, eventhough the driver is (correctly) returning
> IFD_NO_SUCH_DEVICE.
> * Connecting a second dualslot reader causes PCSCLite to segfault.
>
> Undefining ADD_SERIAL_NUMBER in hotplug/libusb.c fixes these problems!
>
> Options are:
>
> * Increasing MAX_READERNAME or

Solved in revision 2637 [2]. MAX_READERNAME is now 100.

> * Adding a check if readername and serial nummer add up to more than
> MAX_READERNAME, in which case the serial number should be omitted.

When a reader name is too long the reader will not be used at all and
the error is logged. Changed in revision 2636 [1].

These modifications will be available in version 1.5.0 of pcsc-lite.

> We are in favour of the second option, also I don't see the point in adding
> the serial number to the readername, while an application can also retrieve
> it via SCardGetAttrib().

Good point.
What do other think about that?

Regards

[1] 
http://lists.alioth.debian.org/pipermail/pcsclite-cvs-commit/2007-October/002806.html
[2] 
http://lists.alioth.debian.org/pipermail/pcsclite-cvs-commit/2007-October/002807.html

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

Reply via email to