From: Daniel V. <Dan...@te...> - 2005-09-29 08:27:42
|
Dear colleagues, I've tried the smartcard patch, but without success. Maybe I did something wrong. Environment: Solaris 10 SPARC box, Sun Ray thin clients with built in smart card readers. I've compiled it with WITH_PCSC120 flag. I've fixed one small issue in scard.patch, then I've managed it to state that Windows side can see the smart card reader. Here is what i did: --- ../rdesktop-1.4.1-orig-alex/scard.c 2005-09-29 10:19:37.000000000 +0200 +++ ../rdesktop-1.4.1-patched/scard.c 2005-09-24 16:08:51.000000000 +0200 @@ -129,9 +129,9 @@ tmpMap = (void *)( (unsigned int)nameMapList + (nameMapCount-1)*sizeof(TSCNameMapRec) ); - len = strlen(alias); + len = strlen(alias) + 1; strncpy(tmpMap->alias,alias,(len>127)?(127):(len)); - len = strlen(name); + len = strlen(name) + 1; strncpy(tmpMap->name,name,(len>127)?(127):(len)); name = optarg; I've attached debug output from rdesktop. I can see smart card reader on windows side, I can see right ATR inside packets sent to windows, so it seems like card is properly recognized. But it seems like communication is not working. I'm calling rdesktop with these switches: rdesktop ... -r "scard:SunRayDTU=SunRayDTU" It works with another (commercial) rdp client properly, so it seems like problem is not on Windows side or Sun Ray unix server side - but maybe I'm wrong :-) I'd appreciate any help. Thanks. Daniel. |