Dear list,

I could solve my problem. (With the help of google.)

The problem is that some data structures do not stay properly aligned and
that is messing up the hcard variable.

Compiling with  "CFLAGS=- Fno-strict-aliasing" makes that things are now
working for me.

Kind regards,

Han


On Fri, Jan 1, 2010 at 7:36 PM, Han Hartgers <[email protected]> wrote:

> Dear list,
>
> I am trying to use the pcscd framework on a Sheevaplug; that is a arm based
> SOC of marvel. But for some reason do I get a "Client failed to
> authenticate" error when my client is trying to access the card.
>
> My problem looks to be very similar to the issue that John Bougs
> experienced in August / September (
> http://archives.neohapsis.com/archives/dev/muscle/2009-q3/0064.html )
>
> John, were your problems solvable?
>
> I hope that someone can advice me what the next step is.
>
> I use debian Squeeze and pcsc-lite 1.5.5
>
> below the output of my debug log of the pcscd server.
>
> Many thanks in advance!
>
> Kind regards,
>
> Han
>
>
> takoashi:~# pcscd -d -f
> 00000000 pcscdaemon.c:267:main() pcscd set to foreground with debug send to
> stderr
> 00001521 pcscdaemon.c:512:main() pcsc-lite 1.5.5 daemon ready.
> 00611616 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
> 0x05E3, PID: 0x0608
> 00005938 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
> 0x04BB, PID: 0x010F
> 00004366 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
> 0x3275, PID: 0x6051
> 00003764 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
> 0x3275, PID: 0x6051
> 00004382 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
> 0x04E6, PID: 0x511A
> 00000042 hotplug_libhal.c:366:HPAddDevice() Adding USB device:
> usb_device_4e6_511a_21120651333578_if0
> 01004744 readerfactory.c:1024:RFInitializeReader() Attempting startup of
> SCM SCR 3310 NTTCom [Vendor Interface] (21120651333578) 00 00 using
> /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
> 00000948 readerfactory.c:877:RFBindFunctions() Loading IFD Handler 3.0
> 00000249 ifdhandler.c:1323:init_driver() Driver version: 1.3.8
> 00001316 ifdhandler.c:1336:init_driver() LogLevel: 0x0003
> 00001057 ifdhandler.c:1356:init_driver() DriverOptions: 0x0000
> 00000034 ifdhandler.c:81:IFDHCreateChannelByName() lun: 0, device:
> usb:04e6/511a:libhal:/org/freedesktop/Hal/devices/usb_device_4e6_511a_21120651333578_if0
> 00002385 ccid_usb.c:236:OpenUSBByName() Manufacturer: Ludovic Rousseau (
> [email protected])
> 00001041 ccid_usb.c:246:OpenUSBByName() ProductString: Generic CCID driver
> 00001659 ccid_usb.c:252:OpenUSBByName() Copyright: This driver is protected
> by terms of the GNU Lesser General Public License version 2.1, or (at your
> option) any later version.
> 00053458 ccid_usb.c:408:OpenUSBByName() Found Vendor/Product: 04E6/511A
> (SCM SCR 3310 NTTCom)
> 00000042 ccid_usb.c:410:OpenUSBByName() Using USB bus/device: 001/006
> 00000603 ccid_usb.c:780:get_data_rates() IFD does not support
> GET_DATA_RATES request: Broken pipe
> 00000768 ifdhandler.c:307:IFDHGetCapabilities() lun: 0, tag: 0xFB0
> 00000035 readerfactory.c:249:RFAddReader() Using the pcscd polling thread
> 00000769 ifdhandler.c:307:IFDHGetCapabilities() lun: 0, tag: 0xFAE
> 00000038 ifdhandler.c:353:IFDHGetCapabilities() Reader supports 1 slot(s)
> 00006338 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
> 0x1D6B, PID: 0x0002
> 00006918 ifdhandler.c:924:IFDHPowerICC() lun: 0, action: PowerUp
> 00294764 Card ATR: 3B F0 12 00 FF 91 81 B1 7C 45 1F 03 99
> 11091543 winscard_msg_srv.c:239:SHMProcessEventsServer() Common channel
> packet arrival
> 00000100 winscard_msg_srv.c:248:SHMProcessEventsServer()
> SHMProcessCommonChannelRequest detects: 8
> 00000032 pcscdaemon.c:147:SVCServiceRunLoop() A new context thread creation
> is requested: 8
> 00000286 winscard_svc.c:133:ContextThread() Thread is started: 8
> 00000155 winscard_msg_srv.c:317:SHMProcessEventsContext() command
> CMD_VERSION received by client 8
> 00000034 winscard_svc.c:189:ContextThread() Client is protocol version 3:0
> 00000301 winscard_msg_srv.c:317:SHMProcessEventsContext() command
> ESTABLISH_CONTEXT received by client 8
> 00000107 winscard.c:242:SCardEstablishContext() Establishing Context:
> 17021627
> 00000699 winscard_msg_srv.c:317:SHMProcessEventsContext() command CONNECT
> received by client 8
> 00000037 winscard.c:303:SCardConnect() Attempting Connect to SCM SCR 3310
> NTTCom [Vendor Interface] (21120651333578) 00 00 using protocol: 2
> 00000037 prothandler.c:128:PHSetProtocol() Attempting PTS to T=1
> 00000032 ifdhandler.c:488:IFDHSetProtocolParameters() lun: 0, protocol T=1
> 00000082 ifdhandler.c:1451:extra_egt() Extra EGT patch applied
> 00025083 winscard.c:451:SCardConnect() Active Protocol: T=1
> 00000051 winscard.c:461:SCardConnect() hCard Identity: 1bac1
> 00012480 winscard_msg_srv.c:317:SHMProcessEventsContext() command
> TRANSMIT_EXTENDED received by client 8
> 00000044 winscard_svc.c:816:MSGCheckHandleAssociation() Client failed to
> authenticate
> 02000108 winscard_svc.c:162:ContextThread() MSGFunctionDemarshall failed:
> -1
> 00001114 winscard.c:253:SCardReleaseContext() Releasing Context: 17021627
> 00000045 winscard.c:884:SCardDisconnect() Active Contexts: 1
>
>
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to