<div dir="ltr"><div>I have pcscd version 1.7.4 installed on Ubuntu. I am writing an IFD that implements</div><div>TAG_IFD_POOLING_THREAD_WITH_TIMEOUT<br></div><div><br></div><div>I added some debug logs, as seen below, and I still see the pcscd daemon printing "Using the pcscd polling thread"</div><div><br></div><div>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?</div><div><br></div><div><br></div><div><div>out/ifd_jni/ifd_entry.c-callIFDHGetCapabilities()-377: TAG_IFD_POLLING_THREAD_WITH_TIMEOUT</div><div>out/ifd_jni/ifd_entry.c-callIFDHGetCapabilities()-382: requested size: 8</div><div>out/ifd_jni/ifd_entry.c-callIFDHGetCapabilities()-386: Enabling poll fn pointer: 0x7f73c7568f78 - 0x7f73c7568f78 - 8</div><div>out/ifd_jni/ifd_entry.c-IFDHGetCapabilities()-674: Exit: 0</div><div>00255688 readerfactory.c:290:RFAddReader() Using the pcscd polling thread</div><div>out/ifd_jni/ifd_entry.c-IFDHICCPresence()-725: Enter: Lun: 0</div></div><div>TAG</div><div><br></div><div>$ pcscd -v</div><div>pcsc-lite version 1.7.4.</div><div>Copyright (C) 1999-2002 by David Corcoran <<a href="mailto:corcoran@linuxnet.com">corcoran@linuxnet.com</a>>.</div><div>Copyright (C) 2001-2011 by Ludovic Rousseau <<a href="mailto:ludovic.rousseau@free.fr">ludovic.rousseau@free.fr</a>>.</div><div>Copyright (C) 2003-2004 by Damien Sauveron <<a href="mailto:sauveron@labri.fr">sauveron@labri.fr</a>>.</div><div>Report bugs to <<a href="mailto:muscle@lists.musclecard.com">muscle@lists.musclecard.com</a>>.</div><div>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</div><div><br></div><div><br></div><div><br></div>-- <br><div class="gmail_signature">Respectfully,<br><br>William C Roberts<br><br></div>
</div>