Hi,

I've been working on fixing smartcard support.
Could you check out my repository
https://github.com/akallabeth/FreeRDP.git
branch smartcard_fixes and give it a try?

How to check out:
git clone https://github.com/akallabeth/FreeRDP.git
cd FreeRDP
git checkout smartcart_fixes

If it works for you, I'll create a pull request so that it eventually
will be merged to master.

On Fri, 2013-09-20 at 16:21 +0200, Florent wrote:
> Hello,
> 
> I am using freeRDP under Ubuntu 13.04 64bits in order to reach a Windows
> 2012 Server farm.
> 
> I get the code from the main git branch (https://github.com/FreeRDP/FreeRDP)
> 
> My problem concerns the smartcard redirection: I am encountering the exact
> same problem described in issue #1030.
> 
> I get a segfault when using an application which tries to access to the
> smartcard (IAS/ECC card). The app is working perfectly when using a Windows
> 7 RDP built-in RDP client (mstsc.exe)
> The strange thing is that the diagnostic tool from the manufacturer works.
> So it is half a success ;)
> 
> When using gdb, I've found the function which is causing the segfault :
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7ffee2664700 (LWP 8018)]
> 0x00007ffff7910162 in handle_Transmit (irp=0x7fffdc01b400) at
> /FreeRDP/channels/smartcard/client/smartcard_operations.c:939
> 939                     Stream_Read_UINT32(irp->input, map[6]);
> 
> The funny thing is that even without the sound support during the
> compilation, the workaround described in the issue 1030 works, which is
> using the sound redirection in the same time (even if it is not useful):
> this time I have no segfault but the app hangs accessing the smartcard data.
> 
> Then I followed the advice in the discussion about issue #1424 which is
> using the branch smartcard_fixes from akallabeth.
> This time the app hangs but there is no segmentation fault. In fact the the
> behaviour is the same when using the "sound redirection" workaround.
> Here is the output when the app hangs trying to access the smartcard :
> 
> Success context: 0x3e27ff36
> Success context: 0
> Warning handle_Transmit
> (/root/akallabeth/channels/smartcard/client/smartcard_operations.c:1697):
> SCARD_IO_REQUEST with invalid extra byte length 0 [512]
> Warning handle_Transmit
> (/root/akallabeth/channels/smartcard/client/smartcard_operations.c:1697):
> SCARD_IO_REQUEST with invalid extra byte length 0 [512]
> Warning handle_Transmit
> (/root/akallabeth/channels/smartcard/client/smartcard_operations.c:1697):
> SCARD_IO_REQUEST with invalid extra byte length 0 [33554432]
> x1c8af9fb
> Success context: 0x1c8af9fb
> Success context: 0x1c8af9fb
> 
> Does it ring a bell?
> 
> Thanks in advance!
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
> _______________________________________________
> Freerdp-devel mailing list
> Freerdp-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freerdp-devel



------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to