patch for scard.c to selectively switch off smartcard readers
Thomas Uhle <[email protected]>
| Newsgroups | gmane.network.rdesktop.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi folks, I use rdesktop with enabled smartcard support on a SunRay Terminal for tunnelling the smartcard reader to a Windows TS. Unfortunately, Windows stumbles upon the Sun JavaCard inside the internal smartcard reader. So my usual workaround was to login seperately without Sun JavaCard as there has not been any possibility yet to switch off a single smartcard reader. All readers are tunnelled to Windows all the time. The attached patch allows to call rdesktop with an option similar to this -r scard:"Sun Ray DTU Internal Reader 00 00"=off[,...] so that the specified reader is not tunnelled to Windows. You can apply the patch directly to the head revision of trunk. Best regards, Thomas Uhle ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ rdesktop-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rdesktop-devel
rdesktop-1.6.0-fix-scard-patch.diff
(text/x-patch, 391 B)
--- rdesktop/trunk/scard.c~ 2010-06-22 12:06:50.000000000 +0100
+++ rdesktop/trunk/scard.c 2010-08-06 15:50:01.320275000 +0200
@@ -741,6 +741,7 @@
DEBUG_SCARD(("SCARD: -> Success\n"));
for (i = 0, tmpMap = nameMapList; i < nameMapCount; i++, tmpMap++)
{
+ if (str_startswith(tmpMap->alias, "off")) continue;
dataLength += outString(out, tmpMap->alias, wide);
}