With the new pcsc-lite-1.6.0 and ccid-1.3.13 things are working fine.
I can not reproduce the failures discribed below. libusb.so.1 has not
changed, so I assume some change to pcsc or ccid has fixed the problem!

On 2/22/2010:
Douglas E. Engert wrote:
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 <[email protected]>:
> 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  <[email protected]>
 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439
 (630) 252-5444
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to