Bug 981954
Summary: | A problem with PC/SC library with Athena ASEDrive IIIe USB Cardreader / JaCarta SmartCard (eToken GOST) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | desput | ||||||||
Component: | rdesktop | Assignee: | Jakub Filak <jfilak> | ||||||||
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 18 | CC: | desput, dominik, jberan, jfilak, kalevlember, ludovic.rousseau+fedoraproject, ludovic.rousseau, rrelyea, sandmann | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | i686 | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | abrt_hash:e60d9ebcf244f943efce57aed88e1bdcba1370f8 | ||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2013-08-01 01:09:28 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
desput
2013-07-07 09:17:54 UTC
Created attachment 769919 [details]
Messages log
Same error occured with xfreerdp / rdesktop compiled with scard support. Trying with 'rdesktop' 1.7.1 : compiled with --enable-smartcard, --with-debug-smartcard with default settings Windows Terminal Server don't capture smartcard because size is limited in 'scard.c' to 448 bytes. Experimentally, i found that maximum length is 2012 bytes, but it was not enough! 4145 desired for JaCarta SCARD: Reader: "Athena ASE IIIe [ASEDrive CCID] 00 00" SCARD: ATR: 3b:d5:18:00:81:31:fe:7d:80:73:c8:21:10:f4 SCARD: SCardStatus(hcard: 0x00000004 [0x000131b5], reader len: 128 bytes, atr len: 32 bytes) SCARD: -> Success (state: 0x00000034, proto: 0x00000002) SCARD: Reader: "Athena ASE IIIe [ASEDrive CCID] 00 00" SCARD: ATR: 3b:d5:18:00:81:31:fe:7d:80:73:c8:21:10:f4 SCARD: SCardTransmit(hcard: 0x00000004 [0x000131b5], send: 5 bytes, recv: 260 bytes) SCARD: -> Success (44 bytes) SCARD: SCardTransmit(hcard: 0x00000004 [0x000131b5], send: 8 bytes, recv: 18434 bytes) SCARD: -> Success (345 bytes) SCARD: SCardTransmit(hcard: 0x00000004 [0x000131b5], send: 8 bytes, recv: 18434 bytes) WARNING: Card response limited from 4145 to 2012 bytes! SCARD: Truncated 4145 to 2012 SCARD: -> Success (2012 bytes) SCARD: SCardEndTransaction(hcard: 0x00000004 [0x131b5], disposition: 0x00000000) SCARD: -> Success SCARD: SCardDisconnect(context: 0x00000003 [0x103e65d], hcard: 0x00000004 [0x131b5], disposition: 0x00000000) SCARD: -> Success SCARD: SCardReleaseContext(context: 0x00000003 [0x103e65d]) SCARD: -> Success SCARD: SCardGetStatusChange(context: 0x00000001 [0x103faec], timeout: 0xffffffff, count: 2) SCARD: "\\?PnP?\Notification" SCARD: user: (nil), state: 0x00000001, event: 0x00000000 SCARD: "Athena ASE IIIe [ASEDrive CCID] 00 00" SCARD: user: (nil), state: 0x00000022, event: 0x00000000 But for ruToken It is enough! Bingo!! To developers of pcsc-tools: how to find possible error? ---- Please help me as quite as it possible, it very need for a healthcare poject in Chuvash republic in Russian Federation. Created attachment 769987 [details]
PCSCD --foreground --debug
when rdesktop failed to connect
Found one comment in early 2006 Today it works with 2012 bytes, but not more. Can anybody help with this magic 448 / 2012 ? ---------------------------------------------------------------------- Comment By: Alexi Volkov (alexi_volkov) Date: 2006-06-26 07:52 Message: Logged In: YES user_id=1357228 For now there is no way found to correctly transmit answer of SCardTransmit function call to Windows if receive buffer length is larger than 448 bytes. In this case Windows simply stop Smart-Card service and you have to relogin. I added check of buffer length and hard limit it on 448 bytes before SCardTransmit call. This is temporarily. If your smart-card worked before this patch it should continue to work as it uses short buffer lengths. ---------------------------------------------------------------------- It looks like a rdesktop (or TDP protocol) issue rather than a pcsc-lite issue. Or even maybe a Windows limitation. I have no idea where the message "WARNING: Card response limited from 4145 to 2012 bytes!" comes from. It does not come from pcsc-lite itself. It does not com from pcsc-lite itself, it comes from scard.c from rdesktop. I think that it is a windows limitation. Please look at more detailed log attached. Created attachment 780324 [details]
2400 Bytes received with extended APDU command, then rdesktop dies
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. |