Norbert Federa
f71b6b46e8
fix string format specifiers
...
- fixed invalid, missing or additional arguments
- removed all type casts from arguments
- added missing (void*) typecasts for %p arguments
- use inttypes defines where appropriate
2016-12-16 13:48:43 +01:00
Norbert Federa
c6e6b44143
countless WLog/printf format specifier fixes
2016-11-25 17:06:25 +01:00
Martin Haimberger
7fe28a8a78
virtualChannel: removed static variable usage from
...
VirtualChannelApi
2016-11-23 04:17:56 -08:00
Martin Haimberger
5c4fb88a58
rail: using new VirtualChannelEx api
2016-11-23 01:24:57 -08:00
Marc-André Moreau
dee76617d9
channels: remove thread-local storage usage
2016-11-15 11:41:01 -05:00
Marc-André Moreau
70c4646722
channels: restore global tables for initHandle, openHandle mappings instead of thread local storage
2016-11-14 15:23:05 -05:00
Armin Novak
9f5da483dc
Reformatted files touched in last 2 commits.
2016-10-06 13:43:12 +02:00
Armin Novak
64590e7e89
Set pEntryPointsEx->ppInterface NULL on error.
2016-10-06 13:43:12 +02:00
Armin Novak
88a3b8dd76
Initializing channel context in each thread.
2016-10-06 13:43:12 +02:00
Armin Novak
dadc5262ae
Removed static channel variables.
...
Global static variables do not work, if more than one instance
of an RDP client is running in the same process space.
Removed the varaibles where possible and replaced them with
thread local storage where necessary.
2016-10-06 13:43:09 +02:00
Armin Novak
2dbc1a0b87
Reverted WTS API changes.
2016-03-14 13:19:08 +01:00
Armin Novak
36cbf1b583
Fixed error handling for channel load failures.
2016-03-14 13:13:43 +01:00
Bernhard Miklautz
6fa3608111
cleanup cmake exports and pkg-config files
...
With this commit the "exported" components (usable with pkg-config and
cmake find module package)
* winpr - winpr library and headers
* freerdp - core library and headers
* freerdp-client - client specific library
* freerdp-server - server specific library
* rdtk - rdtk headers and library
To allow the installation of multiple different version (different major
number) the include files were moved into the respective sub folder:
freerdp -> freerdp{MAJOR}/freerdp (currently freerdp2/freerdp/)
winpr -> winpr{MAJOR}/winpr (currently winrp1/winpr/)
rdtk -> rdpk{MAJOR}/rdtk (currently rdtk0/rdtk/
The generated pkg-config and cmake find modules now also include the major
version number. Currently the following pkg-config are generated and
installed.
* winpr1
* freerdp2
* freerdp-server2
* freerdp-client2
* rdtk0
As cmake is able to handle multiple versions out of the box the
following can be used to find a specific module:
find_package(WinPR)
find_package(FreeRDP)
find_package(FreeRDP-Server)
find_package(FreeRDP-Client)
find_package(RdTk)
As cmake doesn't automatically resolve dependencies for packages it is
necessary to manually include the requirements. For example if
FreeRDP-Client is required WinPR and FreeRDP need to be included
(find_package) as well.
This commit also fixes the installation when STATIC_CHANNELS are built.
WITH STATIC_CHANNELS all channels are linked into libfreerdp-client, for
this all channels are generated as linker archive and linked together in
the final step. Before the intermediate linker archives were, although
not required and useful, installed. Same applies for server side
channels.
2016-01-12 17:32:33 +01:00
Armin Novak
cb958ba9c6
Added pdb files to package target.
...
Fixed name collision with freerdp-shadow targets.
2015-12-15 12:07:21 +01:00
Martin Haimberger
52405a3e79
Remove WIN32ERROR type
...
All return values are UINT now.
2015-08-27 05:38:20 -07:00
Martin Haimberger
65fd259610
misc fixes:
...
fixed all bugs from the review
checking all WaitFor*Object/s calls
2015-07-30 06:49:21 -07:00
Martin Haimberger
b8c110d19b
introduced channel error reporting system
...
The rdpContext gets an event which will
get set if an error occoured in a channel.
If a thread or a void callback has to report an
error it will get signaled by this system.
2015-07-15 00:50:35 -07:00
Martin Haimberger
6e4e1c2773
Merge remote-tracking branch 'upstream/master' into mh-stream-fix
...
Conflicts:
client/Windows/wf_cliprdr.c
2015-06-18 03:06:40 -07:00
Martin Haimberger
d7636d0e28
channel rail hardend
2015-06-18 03:04:32 -07:00
David FORT
12f873f1f9
Fixed MessageQueue and callers
2015-05-29 14:24:14 +02:00
David FORT
6fb3f390a0
Fixed functions that return BOOLs
2015-05-19 13:48:57 +02:00
Hardening
f8120919af
Add checks for some XXX_New and XXX_Add functions
...
Based on PR #2616
2015-05-18 11:28:00 +02:00
Norbert Federa
1eff1a345e
free can handle NULL perfectly fine
2015-05-11 09:07:39 +02:00
Zhang Zhaolong
e675a41705
rail: fix incorrect usage of realloc.
...
Signed-off-by: Zhang Zhaolong <zhangzl2013@126.com>
2015-03-11 11:17:52 +08:00
Armin Novak
cadd2675f6
Fixed variable initialisation and cleanup.
2015-01-20 12:31:30 +01:00
Armin Novak
bbacca6db2
Added CHANNEL_EVENT_DISCONNECTED handling.
...
Additional error checks and logging.
2015-01-20 11:55:50 +01:00
Marc-André Moreau
27a8e50e60
channels: fix drdynvc, patch memory leaks
2014-12-27 15:20:29 -05:00
Marc-André Moreau
f7e52c5e09
channels/rail: remove dependency on svc_plugin.c
2014-11-12 10:43:02 -05:00
Marc-André Moreau
589c21d819
libfreerdp-utils: remove rail utils
2014-11-12 10:18:53 -05:00
Marc-André Moreau
68c9e68400
channels/rail: remove dependency on deprecated eventing system
2014-11-12 09:46:04 -05:00
Marc-André Moreau
b2f7c488ab
xfreerdp: cleanup and fix RemoteApp
2014-11-11 16:35:30 -05:00
Armin Novak
059374457d
Removed library prefix override.
2014-09-17 11:27:11 +02:00
Armin Novak
b1e9ffb655
Using wlog for channel logging now.
...
Fixed compiler warnings and broken callback in urbdrc.
2014-09-15 08:48:46 +02:00
Bernhard Miklautz
0313ca3622
libfreerdp: always build "MONOLITHIC"
...
"libfreerdp" consisted of multiple (small) single libraries. If the cmake
option MONOLITHIC was used only one library was build combining all of
the libfreerdp-* libraries.
The only exceptions to this are libfreerdp-server and libfreerdp-client these
are build as separate libraries.
This commit obsoltes non-monolithic builds and makes monolithic builds
the default. The cmake option MONOLITHIC is also removed.
2014-09-12 00:19:53 +02:00
Armin Novak
66b8905ac6
Using special log defines for channels now.
2014-08-11 09:12:01 +02:00
Armin Novak
b252009d36
Replaced custom logging mechanism with WLog wrapper.
2014-08-07 16:51:49 +02:00
Marc-André Moreau
53639dea0b
channels: reduce dependency on svc_plugin.h
2014-06-11 15:09:28 -04:00
Armin Novak
15ce8c0552
Updated plugins to use new svc_plugin and OnDataReceived API.
2014-06-11 14:42:32 +02:00
Zhang Zhaolong
69296ce3bd
wfreerdp: build fix.
2014-03-04 13:54:25 +08:00
Marc-André Moreau
82b922a70d
channels: rename custom CHANNEL_ENTRY_POINTS_EX to CHANNEL_ENTRY_POINTS_FREERDP to fix conflict
2014-02-16 17:38:59 -05:00
Marc-André Moreau
5ff847a6e6
wfreerdp: fix multiple warnings
2014-02-10 01:06:11 -05:00
Marc-André Moreau
4d6f3b6de4
libfreerdp-client: fix bug in pInterface channel registration
2013-12-05 16:55:28 -05:00
Marc-André Moreau
37450da55d
cmake: fix exporting of targets on pre-2.8.11
2013-10-29 14:47:40 -04:00
Marc-André Moreau
55565e056c
freerdp: export targets
2013-10-28 23:06:39 -04:00
Marc-André Moreau
3cd5652c7d
libfreerdp-core: fix asynchronous queueing of RemoteApp messages
2013-10-22 16:28:23 -04:00
Marc-André Moreau
1a9f86738b
channels/rail: improve callback interface
2013-10-20 21:59:03 -04:00
Marc-André Moreau
acc341e84f
channels/rail: refactor
2013-10-16 15:32:33 -04:00
Marc-André Moreau
bf7d9ff219
channels/rail: refactoring
2013-10-16 14:58:45 -04:00
Marc-André Moreau
7be92579b2
channels/rail: start refactoring
2013-10-14 23:16:40 -04:00
Marc-André Moreau
53bdd952bf
channels/rail: add new debug output
2013-10-11 17:36:34 -04:00
Marc-André Moreau
11109b00e9
libfreerdp-rail: refactor and update RAIL code
2013-10-11 17:09:36 -04:00
Marc-André Moreau
7a7c967425
libfreerdp-rail: cleanup RAIL code
2013-10-09 22:38:26 -04:00
Hardening
c7c5be0bf7
Extract shared code in RAIL channel
...
This patch starts a code mutualisation for a RAIL server-side
implementation. The file rail_common.c contains code that is shared
by both client and server.
2013-08-29 00:06:50 +02:00
Marc-André Moreau
367ebf32a3
freerdp: make use of stream macros to access members
2013-05-15 12:14:26 -04:00
Marc-André Moreau
fdf3ddcf9e
freerdp: purge deprecated stream utils
2013-05-08 17:48:30 -04:00
Marc-André Moreau
5b92413843
freerdp: purge deprecated stream utils
2013-05-08 16:09:16 -04:00
Marc-André Moreau
51715636a5
freerdp: remove some deprecated stream utils
2013-04-29 22:35:15 -04:00
Marc-André Moreau
d187becc28
freerdp: merge with master
2013-03-28 21:20:36 -04:00
Marc-André Moreau
3417a3aab5
freerdp: merge RDP_EVENT type with wMessage
2013-03-28 21:13:56 -04:00
Marc-André Moreau
f757623f7f
channels: replace event_type, event_class with id for events
2013-03-28 20:23:16 -04:00
Marc-André Moreau
8ad5932a3d
channels: continue event refactoring
2013-03-28 19:33:31 -04:00
Marc-André Moreau
72bf8ea032
libfreerdp-utils: start migrating old eventing system
2013-03-28 18:29:57 -04:00
Hardening
7701c9d934
Replace printf(...) by fprintf(stderr, ...)
2013-03-28 23:06:34 +01:00
Marc-André Moreau
8c8a82c31f
libfreerdp-utils: purge old STREAM utils
2013-03-21 16:45:25 -04:00
Marc-André Moreau
a8201b0d1b
libwinpr-utils: combine old and new stream utils
2013-03-21 15:19:33 -04:00
Marc-André Moreau
62eec0c2b5
libfreerdp-utils: rename internal members of STREAM to match new wStream
2013-03-21 15:01:46 -04:00
hardening
865ff2a5f8
Fixed compilation with -Wstrict-prototypes
2013-02-14 22:20:43 +01:00
rdp.effort
a63598e2be
checks stream size in rail client channel
2013-01-11 01:31:48 +01:00
rdp.effort
e53e8e524d
Initialize lpWideCharStr parameter when using ConvertToUnicode
...
This patch ensure that lpWideCharStr is initialized by callers of
ConvertToUnicode
2013-01-10 21:30:32 +01:00
Marc-André Moreau
d19e2042c3
libfreerdp-utils: remove deprecrated unicode utils in favor of WinPR
2012-12-17 10:20:25 -05:00
Marc-André Moreau
8a32de3801
libfreerdp: purged source tree from deprecated memory utils
2012-11-21 21:22:06 -05:00
Marc-André Moreau
ecddb58ba2
channels: cmake cleanup, USB redirection refactoring
2012-11-20 19:34:52 -05:00
Marc-André Moreau
83473d11d1
channels: patch memory leaks, load addins from list
2012-11-19 13:26:56 -05:00
Marc-André Moreau
6882b1fa9d
mfreerdp-server: initial commit
2012-10-31 23:04:31 -04:00
Marc-André Moreau
5bebfc798d
cmake: add client/server channel options
2012-10-19 16:47:48 -04:00
Marc-André Moreau
b5989f7299
cmake: refactoring of channel options with macros
2012-10-19 15:27:55 -04:00
Marc-André Moreau
2f1711c506
libwinpr-path: make tests pass on Windows
2012-10-18 21:11:12 -04:00
Marc-André Moreau
81e485736f
channels: refactoring of channels cmake scripts with macros
2012-10-17 02:14:19 -04:00
Marc-André Moreau
0c1fd59d5f
cmake: fix client add library macro
2012-10-16 17:33:07 -04:00
Marc-André Moreau
d0314a569e
libfreerdp-channels: refactoring of cmake static entry table generation
2012-10-15 16:31:41 -04:00
Marc-André Moreau
010761055e
libfreerdp-channels: refactoring of channels cmake scripts with macros
2012-10-15 14:44:46 -04:00
Marc-André Moreau
d3b505b008
channels: fix linking of channels
2012-10-14 03:22:58 -04:00
Marc-André Moreau
4924b9f673
Merge branch 'channels' of github.com:FreeRDP/FreeRDP into channels
2012-10-14 02:39:18 -04:00
Marc-André Moreau
0feebdbc37
cmake: refactoring of channel scripts
2012-10-14 02:38:58 -04:00
Marc-André Moreau
304b4c2d86
cmake: fix windows build
2012-10-14 01:17:25 -04:00
Marc-André Moreau
06fa85f31c
cmake: refactoring of MONOLITHIC_BUILD
2012-10-13 17:30:59 -04:00
Marc-André Moreau
9d064171a7
freerdp: get rid of old types
2012-10-09 03:26:39 -04:00
Marc-André Moreau
1bf8a45519
freerdp: change uint8, sint8, uint16, sint16 to BYTE, INT8, UINT16, INT16
2012-10-09 03:01:37 -04:00
Marc-André Moreau
5612bc43f8
freerdp: change true/false to TRUE/FALSE
2012-10-09 02:31:28 -04:00
Marc-André Moreau
9909a12af5
libfreerdp-utils: get rid of xmalloc, xrealloc and xfree
2012-10-08 23:21:26 -04:00
Marc-André Moreau
e60a092d81
freerdp: fix headers
2012-10-08 23:02:04 -04:00
Marc-André Moreau
40eea7c76b
cmake: rename WITH_MONOLITHIC_BUILD to MONOLITHIC_BUILD
2012-10-08 22:55:06 -04:00
Marc-André Moreau
ac7e1a3aea
channels: make rail, drdynvc, cliprdr and rdpsnd built-in channels
2012-10-08 22:48:17 -04:00
Marc-André Moreau
11aa251fca
channels: modify plugins to become optionally built-in
2012-10-08 20:26:11 -04:00
Marc-André Moreau
e0693c8f4c
cmake: refactoring of channels cmake scripts
2012-10-04 16:54:16 -04:00
Marc-André Moreau
c7719e9982
libfreerdp-utils: get rid of rect utils
2012-09-24 04:59:18 -04:00
Marc-André Moreau
d0ac31b2c1
libfreerdp-utils: get rid of freerdp_uniconv_out
2012-09-23 19:49:13 -04:00
Marc-André Moreau
44f18159c4
libfreerdp-utils: get rid of UNICONV unicode conversion context
2012-09-23 18:41:07 -04:00
Marc-André Moreau
6cb933aa5a
channels: added build options to enabled/disable client and server channels
2012-09-22 20:16:38 -04:00
Marc-André Moreau
3d65cb1c27
channels: moved client-side implementations in client subdirectories
2012-09-22 17:46:23 -04:00
Marc-André Moreau
cb8c0ef3c8
channels: refactoring of cmake build scripts
2012-09-20 23:39:27 -04:00
Marc-André Moreau
d5d1eb7762
libfreerdp: add proper config.h inclusions
2012-08-14 17:09:01 -04:00
Marc-André Moreau
dd91fdac03
channels: add support for monolithic build
2012-08-14 00:48:55 -04:00
Marc-André Moreau
4b720a6c0d
client: merging Mac OS X and Windows client improvements from Jay Sorg
2012-07-31 16:27:42 -04:00
xangis
a0d651d8a2
Fix for C2036 void pointer unknown size build error on Windows.
2012-07-25 15:08:35 -07:00
Marc-André Moreau
1aa0512490
libfreerdp-rail: rename UNICODE_STRING to RAIL_UNICODE_STRING to avoid conflict
2012-06-19 17:26:37 -04:00
Julien Ropé
98d5b98465
Memory leak fixes.
...
Passed the code through a static analyzer and fixed all reported (and verified) potential memory leaks.
2012-05-16 11:33:57 +02:00
Mike Gilbert
ce28e06158
channels: Optimize storage of string tables.
2011-11-30 19:11:27 -05:00
Marc-André Moreau
a63a196f53
types: refactoring to make use of standard data types when available
2011-11-19 12:19:16 -05:00
Marc-André Moreau
0e95675da3
libfreerdp-core: add support for Refresh Rect and Suppress Output PDUs
2011-11-11 14:02:59 -05:00
Marc-André Moreau
38f25c99ee
rail: fix flags for executable specified as full path, not alias
2011-10-21 14:08:31 -04:00
Marc-André Moreau
6fdecdb01b
debug: cleanup printf's all over the place
2011-09-02 13:29:17 -04:00
Rex Tsai
ecbe24ca9a
cmake: make linking type as option.
2011-09-01 22:18:58 +08:00
Marc-André Moreau
b56962d254
xfreerdp: start handling multiple monitors in xf_monitor.c
2011-08-30 20:59:42 -04:00
roman-b
7744e17ec2
channels/rail: fixed multithread side effect by creating full orders copy for events.
2011-08-22 02:04:21 +03:00
roman-b
e701bf1bcf
channels/rail: create fixed size order struct for Server Get Application ID Response.
2011-08-22 02:01:40 +03:00
roman-b
327ad2607c
channel/rail: add UI event handling.
2011-08-21 04:12:17 +03:00
roman-b
2378b989ff
channel/rail: fix Server Get Application ID Response PDU receiving.
...
It is a possible error in MS-RDPERP 2.2.2.8.1.
2011-08-21 04:09:13 +03:00
roman-b
e7367f9aac
channel/rail: add initial handling all RAIL PDU from server.
...
Note:
Sometimes we have multi-thread side effect with data trasfer throught shared
memory between different threads.
2011-08-20 01:46:10 +03:00
roman-b
e85caeb17d
channel/rail: add handling Server Execute Result PDU
2011-08-19 17:10:08 +03:00
roman-b
154598288b
channel/rail: fixed client system parameters sending.
2011-08-19 16:42:58 +03:00
roman-b
ab0e95a2ad
channel/rail: simplify data and event sending interface.
2011-08-19 15:42:14 +03:00
Marc-André Moreau
48d3e65b08
rail: get client system parameters from xfreerdp
2011-08-17 21:33:22 -04:00
Marc-André Moreau
09980c8a7c
include: refactor FRDP_ types to RDP_
2011-08-17 17:28:26 -04:00
Marc-André Moreau
6f8af2515b
libfreerdp-core: fix window altsec orders negotiation
2011-08-14 17:05:34 -04:00
Vic Lee
460dd38cad
rail: support passing multiple apps and arguments using plugin data.
2011-08-13 11:16:44 +08:00
Vic Lee
549e0f5b93
rail: fix buffer overflow issue.
2011-08-12 16:46:40 +08:00
Vic Lee
e9ba98c827
rail: rename some variables.
2011-08-12 16:26:57 +08:00
Vic Lee
e1159fc043
rail: rename rdpRail to rdpRailOrder.
2011-08-12 16:15:04 +08:00
Marc-André Moreau
91326a4f65
rail: removing older code
2011-08-11 16:27:16 -04:00
Marc-André Moreau
53981e9dba
rail: fix bugs uncovered by increased warning level
2011-08-11 14:06:19 -04:00
Vic Lee
193a92fa8c
rail: fix some compile warnings.
2011-08-11 15:19:30 +08:00
Vic Lee
d7e502dbe1
Add event_class in event object.
2011-08-11 11:14:07 +08:00
Marc-André Moreau
e5a3355099
rail: fixed sending of actual PDUs
2011-08-10 18:08:44 -04:00
Marc-André Moreau
b680ac1ecc
rail: started new cleaner RAIL orders parsing/encoding code
2011-08-10 16:33:15 -04:00
Marc-André Moreau
21aa8ad9a8
libfreerdp-utils: added RAIL utils
2011-08-10 02:24:06 -04:00
Marc-André Moreau
b782189569
rail: started integrating Roman's RAIL virtual channel plugin
2011-08-09 17:42:10 -04:00