Have been playing with macports rdesktop +smartcard on Snow Leopard and Leopard. rdesktop 1.7.1 build fell over. rdesktop 1.6 rev 83402 seemd to have stabiliy problems. So have been fiddling with 1.7.1.
Minimal fix to get rdesktop 1.7.1 + smartcard to build. Seems to still recognise smart card at least partially for SafeSign token administration utility
1. fudge to non-existent lib64 problem with:
$ sudo ln -s /opt/local/lib /opt/local/lib64
2. comment out part with missing symbols in scard.o. See diff file content:
--- 1.7.1-src/scard.c 2011-12-07 19:49:44.000000000 +1000
+++ irc-1.7.1-works/scard.c 2013-05-02 20:22:05.000000000 +1000
@@ -2152,7 +2152,9 @@
{
/* Translate to local encoding */
dwControlCode = (dwControlCode & 0x3ffc) >> 2;
- dwControlCode = SCARD_CTL_CODE(dwControlCode);
+/*IRC try rid of this
+dwControlCode = SCARD_CTL_CODE(dwControlCode);
+*/
}
else
{
@@ -2197,6 +2199,7 @@
DEBUG_SCARD(("SCARD: -> Success (out: %d bytes)\n", (int) nBytesReturned));
}
+/* IRC try rid of this
#ifdef PCSCLITE_VERSION_NUMBER
if (dwControlCode == SCARD_CTL_CODE(3400))
{
@@ -2214,6 +2217,7 @@
}
}
#endif
+*/
out_uint32_le(out, nBytesReturned);
out_uint32_le(out, 0x00000004);
There is a reference to removing definition of SCARD_CTL_CODE in 2005 revisions of MacOS Smart Card Services.
http://smartcardservices.macosforge.org/trac/browser/releases/Apple/OSX-10.7.0/S martcardCCID-55000/ccid/ccid/ChangeLog