Smart card response size limit
jarek <[email protected]>
| Newsgroups | gmane.network.rdesktop.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello!
I was trying to integrate Athena Smart Cards with rdesktop but iw was
not working. On console I saw this messages:
WARNING: Card response limited from 514 to 448 bytes!
WARNING: Card response limited from 514 to 448 bytes!
In scard.c(1572) I've found:
/* FIXME: handle responses with length > 448 bytes */
if (cbRecvLength > 448)
{
warning("Card response limited from %d to 448 bytes!\n",
cbRecvLength);
DEBUG_SCARD(("SCARD: Truncated %d to %d\n", (unsigned
int) cbRecvLength, 448));
cbRecvLength = 448;
}
This code cuts some bytes of card response. I tried to check what is the
reason of this 448 bytes limit, but without success, so I've increased
limit to 1448 bytes. After this everything start to work, but I'm still
afraid that someone had serious reason for this.
best reagrds
Jarek
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev