Commit Graph

132 Commits

Author SHA1 Message Date
Marc-André Moreau
32b65c3000 channels/smartcard: fix broken context/handle encoding/decoding 2014-04-11 17:44:27 -04:00
Marc-André Moreau
79453d1bb4 channels/smartcard: make handles completely opaque 2014-04-11 16:27:01 -04:00
Marc-André Moreau
f49582614c channels/smartcard: fix on Windows 2014-04-11 14:13:06 -04:00
Marc-André Moreau
f99c8ed8d0 channels/smartcard: cleanup context/handle management 2014-04-11 14:01:42 -04:00
Marc-André Moreau
8cac6519e1 channels/smartcard: added detailed debug tracing 2014-04-11 02:17:36 -04:00
Marc-André Moreau
dd5fab82b5 channels/smartcard: cleanup and simplify ListReaders call 2014-04-10 23:55:11 -04:00
Marc-André Moreau
2b52c294a2 channels/smartcard: minor fixes 2014-04-10 17:36:42 -04:00
Marc-André Moreau
912d7f1e4e libwinpr-smartcard: add proper locking by SCARDCONTEXT for pcsc-lite 2014-04-09 15:32:18 -04:00
Marc-André Moreau
da56c8af62 channels/smartcard: pcsc-lite fixes 2014-04-09 14:27:44 -04:00
Marc-André Moreau
39f04c870e channels/smartcard: fix some valgrind warnings 2014-04-09 12:28:03 -04:00
Marc-André Moreau
b146bad480 channels/smartcard: don't treat certain errors as errors 2014-04-09 10:40:52 -04:00
Marc-André Moreau
b91c10392f channels/smartcard: improve SCardGetAttrib 2014-04-08 23:52:24 -04:00
Marc-André Moreau
46686d391f channels/smartcard: harden parsing of expected padding 2014-04-08 22:10:21 -04:00
Marc-André Moreau
5ae6ef4495 channels/smartcard: fix GetStatusChange SCARD_E_TIMEOUT handling 2014-04-08 12:00:04 -04:00
Marc-André Moreau
55e23d1ff4 channels/smartcard: fix padding functions 2014-04-08 11:32:48 -04:00
Marc-André Moreau
e3ae293971 channels/smartcard: more code hardening 2014-04-07 17:17:26 -04:00
Marc-André Moreau
4935199469 channels/smartcard: add more verbose debug output to transmit call 2014-04-07 13:39:47 -04:00
Marc-André Moreau
21c3fd6093 channels/smartcard: fix GetStatusChangeW 2014-04-07 12:38:27 -04:00
Marc-André Moreau
7b4c44c5ff channels/smartcard: handle ntstatus codes 2014-04-07 12:13:31 -04:00
Marc-André Moreau
f158cf0ac3 channels/smartcard: cleanup return codes 2014-04-07 10:59:13 -04:00
Marc-André Moreau
e75b9aa9fa channels/smartcard: more unpacking 2014-04-07 01:19:58 -04:00
Marc-André Moreau
c2fb729167 channels/smartcard: implement clean SCardStatusW 2014-04-07 00:58:34 -04:00
Marc-André Moreau
bbfd4fb361 channels/smartcard: implement clean ListReadersW 2014-04-07 00:10:27 -04:00
Marc-André Moreau
73df99a432 channels/smartcard: cleanup packing 2014-04-06 23:08:40 -04:00
Marc-André Moreau
10aaf59f19 channels/smartcard: cleanup old unpacking code 2014-04-06 21:28:59 -04:00
Marc-André Moreau
9dd9f8c7bf channels/smartcard: more unpacking 2014-04-06 21:09:49 -04:00
Marc-André Moreau
a22b7af2b9 channels/smartcard: unpacking improvements 2014-04-06 16:29:11 -04:00
Marc-André Moreau
7c6afc8099 channels/smartcard: more 64-bit fixes 2014-04-05 21:17:54 -04:00
Marc-André Moreau
b21038e339 channels/smartcard: fix some 64-bit handling issues 2014-04-05 20:46:20 -04:00
Marc-André Moreau
368486dd13 channels/smartcard: cleanup 2014-04-05 19:58:48 -04:00
Marc-André Moreau
9de2a85f6a channels/smartcard: add async irp processing 2014-04-05 17:51:13 -04:00
Marc-André Moreau
2aa248853a channels/smartcard: cancel outstanding IRPs on re-initialization 2014-04-05 17:15:17 -04:00
Marc-André Moreau
70b490d05c channels/smartcard: add outstanding irp list 2014-04-05 16:57:31 -04:00
Marc-André Moreau
600218dfb2 channels/smartcard: cleanup ConnectA/ConnectW parsing 2014-04-05 16:06:46 -04:00
Marc-André Moreau
c40c1c3fab channels/smartcard: handle common headers in a common place 2014-04-05 11:56:02 -04:00
Marc-André Moreau
1e7c4dc091 Merge branch 'smartcard' of github.com:awakecoding/FreeRDP into smartcard 2014-04-05 11:23:01 -04:00
Marc-André Moreau
23745fd58a channels/smartcard: improve packing of data structures 2014-04-05 11:22:48 -04:00
Marc-André Moreau
67ba28e86d libwinpr-smartcard: ListReaders_Call fix 2014-04-04 17:37:00 -04:00
Marc-André Moreau
f9ada64587 libwinpr-smartcard: fix compilation on Windows 2014-04-04 16:45:11 -04:00
Marc-André Moreau
33813c08ec channels/smartcard: cleanup unpacking of data structures 2014-04-04 13:57:28 -04:00
Marc-André Moreau
b12e280ae2 channels/smartcard: improve parsing 2014-04-04 00:56:24 -04:00
Marc-André Moreau
caf1156254 channels/smartcard: add clean definitions of packed data structures and RDP smartcard IOCTLs 2014-04-03 18:47:18 -04:00
Marc-André Moreau
308e32ccb9 channels/smartcard: refactoring 2014-04-03 17:29:12 -04:00
Marc-André Moreau
89ad7638e4 channels/smartcard: migrate code to libwinpr-smartcard 2014-04-03 15:27:55 -04:00
Marc-André Moreau
8cdb3576c2 Merge branch 'master' of github.com:awakecoding/FreeRDP into smartcard
Conflicts:
	channels/smartcard/client/smartcard_main.c
2014-04-02 18:27:31 -04:00
Marc-André Moreau
cdcd290c44 wfreerdp: fix most build warnings 2014-02-10 22:12:13 -05:00
Bernhard Miklautz
ec908a9d6b smartcard: added missing defines for OS X 2014-02-09 14:53:59 +01:00
Bernhard Miklautz
7815747d02 smartcard: fix PCSC detection/build on OS X
fixes #1683
2014-02-07 00:14:46 +01:00
Marc-André Moreau
f9ef874fec channels/smartcard: code style cleanup 2013-10-24 15:34:14 -04:00
Marc-André Moreau
1ffb3f40b0 Merge branch 'smartcard_context_fix' of https://github.com/akallabeth/FreeRDP into smartcard 2013-10-24 15:15:32 -04:00
Marc-André Moreau
50e8c713a0 channels/smartcard: fix crash and get rid of svc_plugin usage 2013-10-24 15:12:11 -04:00
Armin Novak
c5b3ee9b85 Fixed length check against wrong variable. 2013-10-02 16:48:54 +02:00
Armin Novak
918797914b Fixed accidental double free by realloc. 2013-10-01 14:41:59 +02:00
Armin Novak
29dd9ce861 Resource clean up unified in functions to avoid accidental leaks. 2013-10-01 13:09:52 +02:00
Armin Novak
de835018f4 Fixed invalid preprocessor check. 2013-10-01 12:17:55 +02:00
Armin Novak
a9b5d91fd9 Removed printf. 2013-10-01 12:06:46 +02:00
Armin Novak
05a4f541bd Refactored, now using cached handles, if the context or card handles
are NULL.
2013-09-30 14:49:19 +02:00
Armin Novak
4011fafc51 Now storing established context and using it for messages without
provided context.
2013-09-30 13:29:40 +02:00
Armin Novak
632800679b Merge branch 'smartcard_fixes' of github.com:akallabeth/FreeRDP into smartcard_fixes
Conflicts:
	channels/smartcard/client/smartcard_operations.c
2013-09-24 09:48:21 +02:00
Armin Novak
4d8c47ce92 Replaced linkedLen, which is a padded version of the buffer length
from being used for reading from a packet. Now just used for sanity checks.
2013-09-24 09:23:43 +02:00
Armin Novak
1148a8c9fd Fixed length check, now just assuring data read is available and
ignoring padding length.
2013-09-23 15:10:06 +02:00
Armin Novak
9a08171b88 Dumping stream now. 2013-09-23 09:11:23 +02:00
Armin Novak
cbf5e7e3f8 Fixed clang warnings. 2013-09-13 09:47:18 +02:00
Armin Novak
7cf95bcf6e Fixed compile error. 2013-09-13 09:17:06 +02:00
Armin Novak
32a9bd366c Fixed reading of SCARD_IO_REQUEST structures in Transmit_Call. 2013-09-12 15:50:12 +02:00
Armin Novak
27cb9ee604 Now printing debug message for unhandled data. 2013-09-12 14:10:44 +02:00
Armin Novak
c33821d026 Resource cleanup now done using goto
Length now checked at all places.
2013-09-12 13:53:15 +02:00
Armin Novak
02abe530a8 Added debug output, if some message block could not be read. 2013-09-12 12:30:46 +02:00
Armin Novak
9455c4fa5d Fixed smartcard argument checks.
Fixed smartcard package reading.
2013-09-12 12:18:35 +02:00
Armin Novak
7bc0cbdabf Fixed clang issues. 2013-09-05 12:14:34 +02:00
Armin Novak
e5c138a5b9 Fixed various memory leaks, allocation size issues and API misuse
warnings shown by clang as well as some compiler warnings.
2013-09-05 12:14:34 +02:00
Armin Novak
a3b531c036 Fixed issues found with clang-analyzer 2013-09-05 12:14:33 +02:00
Marc-André Moreau
fd230443c5 freerdp: purge old stream utils 2013-05-08 16:27:21 -04:00
Marc-André Moreau
5b92413843 freerdp: purge deprecated stream utils 2013-05-08 16:09:16 -04:00
Marc-André Moreau
b4cac74136 xfreerdp-server: fix RemoteFX encoding 2013-05-01 18:15:55 -04:00
Marc-André Moreau
51715636a5 freerdp: remove some deprecated stream utils 2013-04-29 22:35:15 -04:00
Hardening
7701c9d934 Replace printf(...) by fprintf(stderr, ...) 2013-03-28 23:06:34 +01:00
Marc-André Moreau
dbbb341098 libfreerdp-utils: purge thread utils 2013-03-21 17:58:18 -04:00
Marc-André Moreau
8c8a82c31f libfreerdp-utils: purge old STREAM utils 2013-03-21 16:45:25 -04:00
Marc-André Moreau
808fc210e3 libfreerdp-utils: remove hexdump utils in favor of WinPR utils 2012-12-13 23:54:54 -05:00
Marc-André Moreau
4e8ac78836 channels/smartcard: remove dependency on deprecated freerdp_thread utils 2012-11-21 12:53:54 -05:00
Marc-André Moreau
ebb1a44ea5 channels/smartcard: refactoring of smartcard code 2012-11-21 11:56:40 -05:00