[ rdesktop-Patches-1576068 ] 64-bit smartcard support for 1.4.1 and 1.5.0

SourceForge.net <[email protected]> Sat, 07 Apr 2012 13:21:49 -0700
Newsgroups gmane.network.rdesktop.devel
Message-ID <[email protected]>
Patches item #1576068, was opened at 2006-10-12 10:40
Message generated for change (Comment added) made by maestro_alubia
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=381349&aid=1576068&group_id=24366

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: jared jennings (sarynx)
Assigned to: Michael Gernoth (stargo)
Summary: 64-bit smartcard support for 1.4.1 and 1.5.0

Initial Comment:
These patches enable 64-bit smartcard support for both
rdesktop 1.4.1 and 1.5.0. They apply against an
rdesktop patched with the scard-20060626 patch (see
patch #1314556 for 1.4.1, make sure you get the latest
one, or patch #1576059 for 1.5.0).

1.4.1 crashes pretty unpredictably when you use these
patches and keep your smartcard inserted throughout the
session; usually within five or ten minutes of
successful login, and sometimes within ten seconds.

1.5.0 seems, based on initial testing, to be much more
stable than 1.4.1 with these patches when using a
smartcard.

The 64bit-translating patch depends on the 64bit-clean
patch, which depends on the scard-20060626 patch.

The first patch, 64bit-clean, gets rid of all the casts
from pointers to unsigned longs and back, resolving
hundreds of compiler warnings and preventing segfaults
on startup.

The second patch, 64bit-translating, takes care of
translating between the 32-bit smartcard infrastructure
present on all Windows terminal servers I've seen, and
the 64-bit smartcard infrastructure on 64-bit Linux
boxen. There are a few theoretically unsafe casts in
there, but I think the numbers being casted never
exceed 8000 or so. The translation is 32-bit
transparent, so the same code will compile and run
against both 32-bit and 64-bit pcsc-lite libraries.


----------------------------------------------------------------------

Comment By: maestro_alubia (maestro_alubia)
Date: 2012-04-07 13:21

Message:
I can confirm this bug is fixed in rdesktop-1.7.1.

----------------------------------------------------------------------

Comment By: Michael Gernoth (stargo)
Date: 2006-11-04 05:28

Message:
Logged In: YES 
user_id=471365

These patches (and their dependencies are now committed to the rdesktop
CVS)

----------------------------------------------------------------------

Comment By: jared jennings (sarynx)
Date: 2006-10-12 10:54

Message:
Logged In: YES 
user_id=249160

Hmm, it might not be clear from the description that what I
mean by "64-bit smartcard support" is "smartcard support on
64-bit architectures".

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=381349&aid=1576068&group_id=24366

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2