While doing some smartcard testing on Solaris 10 I ran across two bugs with the open source pcsc-lite and ccid code as it interacts with the Solaris libusb.
The first fix was accepted by pcsc-lite, but the second was rejected, as a problem with libusb, not pcsc-lite or ccid. I have attached the original messsge with the patches as I know there has been a lot of interest within Sun with using smart cards, Kerberos PKINIT, opensc and pcscd and a number of messages on how to get these to compile on Solaris and Open Solaris. I would hope that someone within Sun would find this interesting and look at it closer to see if it is indeed a bug on libusb or not and if it also fails on Open Solaris. For my testing I can continue to apply the ccid patch. > 2010/2/19 Douglas E. Engert <deengert at anl.gov>: >> > Two fixes: >> > >> > GCC >> > >> > The gcc on Solaris 10 combined with the Sun loader appears to not handle >> > the gcc visibility attribute correctly. The sparc version says it is >> > ignored, the x86 version gives linker error. The attached patch >> > sun.gcc.1.5.6-svn-477.txt tries to test for gcc on Sun and not use >> > the visibility attribute. If on a sun and the compiler is not GCC, >> > try and use the Sun __global and __hidden instead. (I did not try the Sun >> > Studio compiler with this.) > > Committed in revision 4766. > Thanks > >> > PCSCD CRASH >> > >> > pcscd would crash sometimes when a reader was unplugged on Solaris 10 >> > or would not recognize the reader if it was plugged back in. The problem >> > appears to be that once the libusb returns errno == ENODEV no further >> > calls should be made other then to usb_close. > > The crash is not in pcscd but in libusb on Solaris. > libusb should not crash if called on a device that disappeared. libusb > should return an error code instead. > I reject this patch, sorry. > > Bye -- Douglas E. Engert <DEEngert at anl.gov> Argonne National Laboratory 9700 South Cass Avenue Argonne, Illinois 60439 (630) 252-5444 -------------- next part -------------- An embedded message was scrubbed... From: "Douglas E. Engert" <deeng...@anl.gov> Subject: Re: [Muscle] new BETA versions of pcsc-lite and libccid Date: Fri, 19 Feb 2010 13:44:13 -0600 Size: 8073 URL: <http://mail.opensolaris.org/pipermail/crypto-discuss/attachments/20100222/8f7ad1ab/attachment.eml>