[Pcsclite-muscle] TAG_IFD_POOLING_THREAD_WITH_TIMEOUT not working

William Roberts bill.c.roberts
Tue Mar 3 17:35:28 PST 2015


I have pcscd version 1.7.4 installed on Ubuntu. I am writing an IFD that
implements
TAG_IFD_POOLING_THREAD_WITH_TIMEOUT

I added some debug logs, as seen below, and I still see the pcscd daemon
printing "Using the pcscd polling thread"

I return IFD_SUCCESS, and set *Length = sizeof(fn*) which is 8. I looked at
the source code, and it appears that it checks the response value and
*Length. Response should be SCARD_SUCCESS and the *Length should be 8.
However, it doesn't seem to take that branch. I see it gets called twice in
readerfactory.c and both code blocks are similar. Any ideas?


out/ifd_jni/ifd_entry.c-callIFDHGetCapabilities()-377:
TAG_IFD_POLLING_THREAD_WITH_TIMEOUT
out/ifd_jni/ifd_entry.c-callIFDHGetCapabilities()-382: requested size: 8
out/ifd_jni/ifd_entry.c-callIFDHGetCapabilities()-386: Enabling poll fn
pointer: 0x7f73c7568f78 - 0x7f73c7568f78 - 8
out/ifd_jni/ifd_entry.c-IFDHGetCapabilities()-674: Exit: 0
00255688 readerfactory.c:290:RFAddReader() Using the pcscd polling thread
out/ifd_jni/ifd_entry.c-IFDHICCPresence()-725: Enter: Lun: 0
TAG

$ pcscd -v
pcsc-lite version 1.7.4.
Copyright (C) 1999-2002 by David Corcoran <corcoran at linuxnet.com>.
Copyright (C) 2001-2011 by Ludovic Rousseau <ludovic.rousseau at free.fr>.
Copyright (C) 2003-2004 by Damien Sauveron <sauveron at labri.fr>.
Report bugs to <muscle at lists.musclecard.com>.
Enabled features: Linux x86_64-pc-linux-gnu serial usb libudev
usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd
configdir=/etc/reader.conf.d



-- 
Respectfully,

William C Roberts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20150303/f72ac387/attachment.html>



More information about the pcsclite-muscle mailing list