Commit Graph

33 Commits

Author SHA1 Message Date
Pierre Ossman
1ac2cd144e Control codes to SCardControl() are platform dependent so we need to do
some translation before passing them on.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1595 423420c4-83ab-492f-b58f-81f9feb106b5
2010-06-14 07:35:55 +00:00
Pierre Ossman
4635dfc148 Remove undocumented voodoo in SCardGetStatusChange() as it causes the
system version to return immediately, causing CPU intensive loops.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1594 423420c4-83ab-492f-b58f-81f9feb106b5
2010-06-14 07:35:00 +00:00
Peter Åstrand
aab770d625 Indented
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1562 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-27 07:40:47 +00:00
Peter Åstrand
60e82d86ef Reset smart card state before reconnect. This fixes stability problems
when using smart cards in conjunction with RandR. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1561 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-26 12:23:53 +00:00
Peter Åstrand
f749dbfef4 Avoid a few more compile warnings. This file should now build without
warnings on 32 bit platforms, when debugging is not enabled. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1560 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-26 10:24:26 +00:00
Peter Åstrand
281d7c9f06 Changed license to GPLv3
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1534 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 08:31:06 +00:00
Peter Åstrand
f6e5fe5f38 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1428 423420c4-83ab-492f-b58f-81f9feb106b5
2008-01-24 08:06:02 +00:00
Michael Gernoth
5c01b88a5f Smartcard fixes (bigendian support, locking, bugfixes) from
Paul Winder <Paul.Winder@tadpole.com>


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1420 423420c4-83ab-492f-b58f-81f9feb106b5
2007-10-30 13:09:37 +00:00
Michael Gernoth
27c360df03 really check for version of pcsclite in configure.ac
this fixes the smartcard-support on OS X 10.5


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1419 423420c4-83ab-492f-b58f-81f9feb106b5
2007-10-28 16:49:45 +00:00
Pierre Ossman
190c138e53 Respect mask used when searching for cards.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1415 423420c4-83ab-492f-b58f-81f9feb106b5
2007-07-03 14:20:04 +00:00
Pierre Ossman
421c2386d3 Improve readability of smart card code.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1414 423420c4-83ab-492f-b58f-81f9feb106b5
2007-07-03 14:08:06 +00:00
Pierre Ossman
d90bdbcb23 Fix two crashes caused by improver handling of structures.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1413 423420c4-83ab-492f-b58f-81f9feb106b5
2007-06-28 12:52:13 +00:00
Michael Gernoth
a8338fcd6e always make g_out an array
this removes duplicated code from scard.c


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1396 423420c4-83ab-492f-b58f-81f9feb106b5
2007-02-20 16:51:46 +00:00
Michael Gernoth
9769d751ee some more RD_BOOL
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1372 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-08 12:38:34 +00:00
Jay Sorg
6091381a81 prefix BOOL with RD_
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1371 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-08 04:47:06 +00:00
Michael Gernoth
510afcca69 ignore PCSCs idea of BOOL
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1367 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 23:19:54 +00:00
Michael Gernoth
ce8fe4d0e4 RD_ prefix
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1366 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 14:38:48 +00:00
Michael Gernoth
a9ad53b482 add human readable error messages
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1329 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-04 20:02:42 +00:00
Michael Gernoth
1a3b95e662 initialize scard_mutex
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1328 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-04 17:33:15 +00:00
Michael Gernoth
c3f49ea246 more smartcard locking fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1327 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-03 23:51:35 +00:00
Michael Gernoth
8419d91138 make sure to lock the datapath of rdpdr_send_completion to prevent
simultaneous access to shared variables in multiple threads


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1326 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-03 19:56:42 +00:00
Michael Gernoth
659a1e062b reset padding to 8, as it did not fix the disconnects
enable sendControl mutex, as the rest of rdesktop is not threadsafe and
parallel access to rdpdr_send_completion might very likely result in
these disconnects


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1325 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-03 18:57:09 +00:00
Michael Gernoth
1c153f3315 Change email of Alexi Volkov
Remove smartcard banner from scard.c (ACKed by Alexi)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1322 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-03 14:28:10 +00:00
Michael Gernoth
df43fd5d93 always pad
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1321 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-02 23:31:58 +00:00
Michael Gernoth
573ded9db3 increase padding.
this seems to fix disconnects with encryption-errors reported in the
TS log


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1320 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-02 23:12:25 +00:00
Michael Gernoth
69deb20512 use xmalloc for mutex allocation
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1319 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-02 21:32:56 +00:00
Michael Gernoth
24680f4f8d clean up smartcard debugging
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1318 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-02 20:48:28 +00:00
Michael Gernoth
bb039e933b move response-limitation to a more appropriate place
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1316 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-02 11:09:35 +00:00
Michael Gernoth
58280c0b72 remove a bit code duplication
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1315 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 22:46:05 +00:00
Michael Gernoth
1e035e28ef fix warnings
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1312 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 21:37:56 +00:00
Michael Gernoth
6b574d2ca7 add normal rdesktop-header to smartcard-files
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1311 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 21:26:55 +00:00
Michael Gernoth
ae67d3e759 Add smartcard support for mac os x
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1310 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 21:23:08 +00:00
Michael Gernoth
f37c871e8b Smartcard support by Alexi Volkov <alexi@pravex.kiev.ua> and additional
patches for smartcard-support by Jennings Jared <jared.jennings.ctr@eglin.af.mil>


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1308 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 20:52:01 +00:00