Hello all,
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
* Adding a check if readername and serial nummer add up to more than
MAX_READERNAME, in which case the serial number should be omitted.
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().
Mit freundlichen Grüßen
Best regards,
Philipp Eichinger
OMNIKEY GmbH
Ferihumerstrasse 13
A-4040 Linz
Austria
Tel +43 (0) 732 / 602220 - 37
Fax +43 (0) 732 / 602220 - 15
E-Mail [EMAIL PROTECTED]
Web www.aaitg.com
------------------------------------------------------------
Meet us at:
Intergraf, October 10-12, Nice, Booth 98
CARTES & IDentification, November 13-15, Paris, Booth 3F002
2nd Asia Pacific Transport Revenue Collection Discussion Forum, 24-25 October
2007, Taipei/Taiwan
Confidential Notice:
This communication may contain information that is proprietary, privileged or
confidential or otherwise legally exempt from disclosure. The information
contained in this email is intended solely for the addressee. Access to this
email by anyone else or any unauthorized review, use, disclosure or
distribution is unauthorized and prohibited. If you are not the named addressee
indicated in this message (or responsible for delivery of the message to such
person), you are not authorized to read, print, retain, copy or disseminate
this message or any part of it. If you have received this message in error,
please notify the sender immediately by fax or e-mail and delete and destroy
all copies of the message. If you are the intended recipient but do not wish to
receive communications through this medium, please advise the sender
immediately.
The views expressed in this email are not necessarily the views of OMNIKEY. The
company, its directors, officers or employees make no representation or accept
any liability for its accuracy or completeness unless expressly stated to the
contrary.
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle