Hi,

just as a heads-up: I fixed this issue with the attached patches (either 1.0.x 
or 1.1.x). It is based on https://github.com/FreeRDP/FreeRDP/issues/626 and 
Jaroslaw Poloks fix attempt. 

>From what I can say is, with this patch applied, the smartcard support runs 
perfectly, even exchanging them during the session seems to work (this is not  
tested throughout). This combines to a major difference in user experience.

Hopefully, somebody with more insight into the RDP protocol will turn his 
attention to the underlying issue. 

Until then, feel free to use this as a temporary crash counter measure..

My promise still stands, I have some experience with the PC/SC stack, hacking, 
gdb. If you speak RDP, preferably the dialect, that is spoken in this project, 
let's get together.

Cheers,
Pete


On Donnerstag, 28. März 2013 13:06:40 Hans-Peter Jansen wrote:
> Hi,
> 
> On Dienstag, 26. März 2013 12:51:40 Hans-Peter Jansen wrote:
> > Hi,
> > 
> > on trying to get FreeRDP going with its smartcard support, I'm harvesting
> > segfaults only. Unfortunately, the keyboard is locked at the time of the
> > crash, hence, I cannot give you a useful gdb bt here (as it doesn't take
> > any kbd input..). Switching to a text console and killing gdb works,
> > though.
> > 
> > System: openSUSE 12.2/x86_64, FreeRDP: git
> > 10a92074c593196af23f33458a38495f549a9f6f
> 
> Tried again as of today: git 2b1a3b0ad78cdfa1a379c3881ad808178c8b0d17
> but the problem persists.
> 
> Meanwhile, I updated to the latest pcsc-lite version: 1.8.8, and fixed
> pcsc_scan (see below).
> 
> The server side is a Windows 2008 R2 system, btw.
> 
> When it crashes, FreeRDP tries to lookup/read some certificates on the
> smartcard (as shown below the smartcard icon) in order to use them for
> login, but there are none. rdesktop says immediately there after: "No
> valid certificates. Please check, if smartcard..."
> 
> In this setting, the smartcard is only used from datev software: a german
> financial office solution.
> 
> Let me know, if I can do anything to help resolving this issue.
> 
> Thanks,
> Pete
> 
> 
> PC/SC device scanner
> V 1.4.18 (c) 2001-2011, Ludovic Rousseau <ludovic.rouss...@free.fr>
> Compiled with PC/SC lite version: 1.8.8
> Using reader plug'n play mechanism
> Scanning present readers...
> 0: KOBIL Systems Smart Token (NE128107712) 00 00
> 
> Thu Mar 28 12:51:35 2013
> Reader 0: KOBIL Systems Smart Token (NE128107712) 00 00
>   Card state: Card inserted,
>   ATR: 3B BF 96 00 81 31 FE 5D 00 64 04 11 04 00 31 C0 73 F7 01 D0 00 90 00
> 7B
> 
> ATR: 3B BF 96 00 81 31 FE 5D 00 64 04 11 04 00 31 C0 73 F7 01 D0 00 90 00 7B
> + TS = 3B --> Direct Convention
> + T0 = BF, Y(1): 1011, K: 15 (historical bytes)
>   TA(1) = 96 --> Fi=512, Di=32, 16 cycles/ETU
>     250000 bits/s at 4 MHz, fMax for Fi = 5 MHz => 312500 bits/s
>   TB(1) = 00 --> VPP is not electrically connected
>   TD(1) = 81 --> Y(i+1) = 1000, Protocol T = 1
> -----
>   TD(2) = 31 --> Y(i+1) = 0011, Protocol T = 1
> -----
>   TA(3) = FE --> IFSC: 254
>   TB(3) = 5D --> Block Waiting Integer: 5 - Character Waiting Integer: 13
> + Historical bytes: 00 64 04 11 04 00 31 C0 73 F7 01 D0 00 90 00
>   Category indicator byte: 00 (compact TLV data object)
>     Tag: 6, len: 4 (pre-issuing data)
>       Data: 04 11 04 00
>     Tag: 3, len: 1 (card service data byte)
>       Card service data byte: C0
>         - Application selection: by full DF name
>         - Application selection: by partial DF name
>         - EF.DIR and EF.ATR access services: by GET RECORD(s) command
>         - Card with MF
>     Tag: 7, len: 3 (card capabilities)
>       Selection methods: F7
>         - DF selection by full DF name
>         - DF selection by partial DF name
>         - DF selection by path
>         - DF selection by file identifier
>         - Short EF identifier supported
>         - Record number supported
>         - Record identifier supported
>       Data coding byte: 01
>         - Behaviour of write functions: one-time write
>         - Value 'FF' for the first byte of BER-TLV tag fields: invalid
>         - Data unit in quartets: 2
>       Command chaining, length fields and logical channels: D0
>         - Command chaining
>         - Extended Lc and Le fields
>         - Logical channel number assignment: by the card
>         - Maximum number of logical channels: 1
>     Mandatory status indicator (3 last bytes)
>       LCS (life card cycle): 00 (No information given)
>       SW: 9000 (Normal processing.)
> + TCK = 7B (correct checksum)
> 
> Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
> 3B BF 96 00 81 31 FE 5D 00 64 04 11 04 00 31 C0 73 F7 01 D0 00 90 00 7B
> 3B BF 96 00 81 31 FE 5D 00 64 .. .. .. .. 31 C0 73 F7 01 D0 00 90 00 ..
>         TCOS 3.0 / NetKey 3.0
> 
> 
> ----------------------------------------------------------------------------
> -- Own the Future-Intel&reg; Level Up Game Demo Contest 2013
> Rise to greatness in Intel's independent game demo contest.
> Compete for recognition, cash, and the chance to get your game
> on Steam. $5K grand prize plus 10 genre and skill prizes.
> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
> _______________________________________________
> Freerdp-devel mailing list
> Freerdp-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freerdp-devel
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to