Commit Graph

213 Commits

Author SHA1 Message Date
Martin Haimberger
e5d5cd3c94 hardend cliprdr
hardend cliprdr server and client
also updated all callbacks in the server and client
implementations
2015-06-18 03:04:31 -07:00
Norbert Federa
51b697d4c8 transport/mfreerdp: fix async transport
- handle WAIT_TIMEOUT result as error in async transport thread
  if an INFINITE timeout was specified in WaitForMultipleObjects
- fix mfreerdp's async transport handling to not use
  freerdp_get_event_handles/freerdp_check_event_handles if async
  transport is activated
2015-05-14 21:57:16 +02:00
MartinHaimberger
e3236c2317 Merge pull request #2605 from nfedera/fix-2015-05-08-01
fixed multiple missing gdi return value checks
2015-05-11 16:59:32 +02:00
Norbert Federa
1eff1a345e free can handle NULL perfectly fine 2015-05-11 09:07:39 +02:00
Norbert Federa
71a4349928 fixed multiple missing gdi return value checks
mainly gdi_Create* functions
2015-05-08 21:39:23 +02:00
Norbert Federa
25fc866a58 Fix unchecked CreateThread calls and misc fixes 2015-05-05 13:55:48 +02:00
Bernhard Miklautz
515502ffa5 change return types of callbacks to BOOL
* change all client/server callbacks to BOOL
* update all clients accordingly
* add multiple return value checks
* small fixes
2015-04-21 14:18:07 +02:00
Armin Novak
c380fb3520 Added flag to ignore unknown keywords
freerdp_client_settings_parse_command_line now allows ignoring
unknown keywords.
2015-03-16 10:15:37 +01:00
Bernhard Miklautz
9ab95adf0d mfreerdp: fix build with latest cmake
Newer versions of cmake seem to use CMAKE_C_FLAGS for objective-c.
Now both flags are set for compatibility.
2015-01-11 19:29:50 +01:00
Marc-André Moreau
1e7941297e mfreerdp: fix clipboard missing last character and extra last character 2014-12-21 14:17:51 -05:00
Bernhard Miklautz
10ee2f72d9 Mac: set policy to silent cmake >= 3.0 warnings
Set the following policies to "OLD" if cmake version is greater than
2.8.12:

CMP0026 - Disallow use of the LOCATION target property
CMP0045 - Error on non-existent target in get_target_property
2014-12-12 19:25:43 +01:00
Marc-André Moreau
b8f694d8df mfreerdp: fix cliprdr copy with Windows XP 2014-11-20 16:05:13 -05:00
Marc-André Moreau
8449e1c946 mfreerdp: fix thread stopping 2014-11-20 12:34:49 -05:00
Marc-André Moreau
b32341785e xfreerdp: remove dependency on libfreerdp-rail 2014-11-12 19:49:35 -05:00
Marc-André Moreau
92d08cf58f mfreerdp: rewrite and update clipboard code 2014-11-05 17:14:32 -05:00
Marc-André Moreau
20da57a760 mfreerdp: fix build and cursor conversion 2014-10-25 10:17:41 -04:00
Marc-André Moreau
3346d3b912 mfreerdp: fix crash with <32bpp color depths 2014-10-18 21:31:24 -04:00
Marc-André Moreau
a1e660d92e freerdp: unify clipboard standard format id definitions 2014-10-16 22:20:12 -04:00
Marc-André Moreau
2a5192b027 Merge branch 'master' of github.com:awakecoding/FreeRDP into egfx
Conflicts:
	client/Windows/wf_cliprdr.h
	client/Windows/wf_event.h
	client/X11/xf_client.c
	client/X11/xf_gdi.c
	libfreerdp/gdi/gdi.c
	server/Mac/mf_input.c
2014-09-17 19:09:56 -04:00
Armin Novak
477d6214ee Decreased logging verbosity. 2014-09-15 19:47:59 +02:00
Armin Novak
7913a57bc5 Using wlog for logging in clients now. 2014-09-15 08:55:00 +02:00
Marc-André Moreau
b0d27beae3 mfreerdp: add egfx support 2014-09-13 12:02:53 -04: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
0780c0993e Replaced fprintf(stderr with DEBUG_WARN 2014-08-07 22:21:07 +02:00
Mike Gilbert
ae1fdf6153 Remove execute bit from many files 2014-07-20 00:52:35 -04:00
Bernhard Miklautz
6a49bcfe40 winpr: always build "monolitic"
winpr is now always build as single library.
The build option MONOLITHIC_BUILD doesn't influence this behavior anymore.

The only exception is winpr-makecert-tool which is still build as extra
library.

This obsoletes complex_libraries for winpr.
2014-07-10 11:10:58 +02:00
Marc-André Moreau
2a82684521 channels: cleanup unused freerdp channels global functions 2014-06-11 16:27:31 -04:00
Benoît LeBlanc
6d55d8859d Added context error codes 2014-03-28 12:23:16 -04:00
Benoît LeBlanc
557c082458 Merge branch 'master' of git://github.com/awakecoding/FreeRDP 2014-03-05 16:35:22 -05:00
Marc-André Moreau
5d59ea09d6 mfreerdp: add Apple IOKit-based keyboard type detection 2014-03-04 14:01:01 -05:00
Marc-André Moreau
fb2428309c mfreerdp: apply fixes from mac-audio branch 2014-03-03 16:57:43 -05:00
Marc-André Moreau
4bbd78a80b libfreerdp-core: remove unnecessary usage of freerdp_channels_data 2014-02-15 15:26:34 -05:00
Benoît LeBlanc
9d929469d2 Merge branch 'master' of git://github.com/awakecoding/FreeRDP
# By Marc-André Moreau (27) and others
# Via Marc-André Moreau
* 'master' of git://github.com/awakecoding/FreeRDP: (48 commits)
  afreerdp: fix build on Android
  libwinpr-wtsapi: include wtsapi32.h on Windows
  wfreerdp: fix target exporting
  wfreerdp: fix building against OpenSSL with MONOLITHIC_BUILD and shared libraries
  wfreerdp: fix test build issues
  libwinpr-crypto: implement CryptProtectMemory/CryptUnprotectMemory
  libwinpr-memory: add missing definitions
  libwinpr-memory: start stubbing
  Increased size of stream on GCC conference create request from 512 to 1024.  For large numbers of static virtual channels, the stream was being overflowed and was causing crashes.
  Fixes to process new command line options (autodetect, heartbeat, multitransport), join the MCS message channel and process auto-detect PDUs during the connection sequence.
  wfreerdp: fix build against static openssl library
  winpr-hash: fix building against openssl in static mode
  libfreerdp-gdi: fix invalidation of region with line drawing
  mfreerdp: fix hungarian keyboard '0' and 'i' key inversion
  Fixes build issue on Windows
  libwinpr-synch: add active/inactive linked list for timer queue
  libwinpr-synch: improve timer queue implementation
  libwinpr-synch: make use of head's expiration time in timer queue
  libwinpr-synch: make use of timespec for timer queue
  libwinpr-synch: improve timer queue implementation
  ...

Conflicts:
	client/common/CMakeLists.txt
2014-02-04 11:37:40 -05:00
Marc-André Moreau
4d289ee065 mfreerdp: fix hungarian keyboard '0' and 'i' key inversion 2014-01-28 16:23:42 -05:00
Benoît LeBlanc
20c677ddaa mac CLI: call freerdp_stop on applicaiton close 2013-12-20 11:54:18 -05:00
Benoît LeBlanc
d94122c07b Fixed mac cli message box message 2013-12-18 13:00:16 -05:00
Benoît LeBlanc
5de7a4f082 Code cleanup 2013-12-18 12:44:40 -05:00
Marc-André Moreau
bf094ed997 mfreerdp: code cleanup 2013-12-11 14:31:54 -05:00
Marc-André Moreau
9d745cc038 Merge branch 'master' of github.com:mrthebunny/FreeRDP 2013-12-11 12:22:33 -05:00
Marc-André Moreau
eb20d0f770 freerdp: fix order of OrderSupport initialization 2013-12-10 12:30:25 -05:00
Benoît LeBlanc
2ea2a6937d missing DEFINE on .h file 2013-12-09 15:30:00 -05:00
Benoît LeBlanc
065ba4f500 Prevent crash in mac CLI application if command-line is not properly parsed (NULL argv causes segmentation fault when printing usage). 2013-12-09 14:28:32 -05:00
Marc-André Moreau
128fb72ec6 mfreerdp: fix possible crash on gdi termination 2013-11-25 00:25:16 -05:00
Benoît LeBlanc
fce1880cae Fix leak (native mac) : free gdi 2013-11-22 13:38:42 -05:00
Benoît LeBlanc
c82fd89860 Merge branch 'master' of git://github.com/awakecoding/FreeRDP 2013-11-06 14:52:27 -05:00
Marc-André Moreau
9921e519a9 mfreerdp: fix termination of MacFreeRDP 2013-11-05 11:49:42 -05:00
Richard Markiewicz
cc881678a6 Update AppDelegate.m
stringWithFormat returns an autoreleased object, so manually releasing message results in a crash
2013-11-04 11:35:25 -05:00
Benoît LeBlanc
b27461e693 Merge branch 'master' of git://github.com/awakecoding/FreeRDP
# By Marc-André Moreau (13) and others
# Via Marc-André Moreau
* 'master' of git://github.com/awakecoding/FreeRDP:
  libfreerdp-rail: cleanup RAIL code
  libwinpr-utils: fix IPv4 checksum and TCP sequence numbers with wlog packet messages
  libwinpr-utils: improve quality of data for reconstructed IP headers
  libwinpr-utils: initial wlog packet header reconstruction
  libwinpr-utils: start reconstructing IP headers for wlog packet message
  libfreerdp-core: started logging packets to pcap file
  libwinpr-utils: start implement wlog packet appender
  libwinpr-utils: add some configurability to wlog with environment variables
  libfreerdp-core: added debug output for surface commands
  libfreerdp-codec: start making use of WLog for RemoteFX
  libwinpr-utils: fix wlog build warnings
  mfreerdp: fix keyboard mapping for toggle keys
  fixed warining fo not constant log format string
  Fix function prototype
  libwinpr-utils: improved binary appender
  fixed memory leak in wlog
  loglevel filtering fix

Conflicts:
	client/Mac/MRDPView.m
2013-10-15 10:01:36 -04:00
Marc-André Moreau
59eccac4e7 libfreerdp-client: refactor and decouple rdpSettings* from client context 2013-10-12 21:07:12 -04:00
Benoît LeBlanc
e15636a610 code cleanup: move coord conversion from individual mouse events to function mf_scale_mouse_event 2013-10-08 15:03:05 -04:00
Marc-André Moreau
fdae43aafc mfreerdp: fix keyboard mapping for toggle keys 2013-10-07 16:43:23 -04:00
Benoît LeBlanc
766c1a18aa MacFreeRDP: fixed invalid region coordinates conversion, cleanup traces 2013-10-02 10:51:48 -04:00
Benoît LeBlanc
78981418ce MacFreeRDP: Handling of mouse and region invalidation on scaling/scrolling 2013-10-02 10:24:01 -04:00
Benoît LeBlanc
aca72114e2 Mouse events and region invalidate support for smart sizing. 2013-10-01 14:30:06 -04:00
Benoît LeBlanc
7198ee2def Merged changes from FreeRDP branch, notably support for fullscreen on mac os x. 2013-09-30 11:31:01 -04:00
Benoît LeBlanc
05febe9d03 MacFreeRDP: Moved setViewSize logic out of the framework to the CLI app, because the content resizes the parent window, which interferes with other applications using the framework. 2013-09-27 17:36:53 -04:00
Joakim Plate
1c112474c6 Correct handling of mouse scrolling for osx
Setup server to scroll 1 line at a time to match osx
scrolling speed.
2013-09-22 00:07:27 +02:00
Joakim Plate
11912497ea Make sure windows size follows commandline geometry
This adds support for fullscreen mode, which may fail
on non lion systems
2013-09-21 21:35:41 +02:00
Joakim Plate
16048641f3 Let mac client print command line info as well
Only seen when running the actual executable itself, not during
open.
2013-09-21 21:35:02 +02:00
Marc-André Moreau
528647b6d0 Merge pull request #1492 from elupus/passwd
Mac password dialog fixes
2013-09-19 13:05:37 -07:00
Joakim Plate
ffa616bff4 Correct username place holder in mac application 2013-09-18 23:34:43 +02:00
Joakim Plate
1f15d39f8a Correct generation of PasswordDialog.nib 2013-09-17 23:12:33 +02:00
Marc-André Moreau
7edfe66274 freerdp: various missing link dependencies and symbol exports 2013-09-03 21:48:26 -04:00
Marc-André Moreau
b480ce1830 freerdp: remove vendor-specific options from build system, add automatic ways of including external clients/servers 2013-09-03 20:37:04 -04:00
Marc-André Moreau
bb30ceb006 mfreerdp: cleanup 2013-08-09 21:23:08 -04:00
Marc-André Moreau
2847c8819e mfreerdp: fix out of source build 2013-08-08 16:38:50 -04:00
Marc-André Moreau
b164453d75 mfreerdp: fix 32-bit and universal build 2013-08-08 16:10:23 -04:00
Marc-André Moreau
1d1d04149c mfreerdp: cleanup makefiles 2013-08-08 15:49:24 -04:00
Benoît LeBlanc
81626c8741 MacFreeRDP cli fixes:
- added ErrorInfo handling.
- Showing alert message on main thread.
- Autorelease pool for background thread.
2013-07-22 15:33:30 -04:00
Benoît LeBlanc
e063a5cbcb MacFreeRDP: Fixed deployment paths, deploying missing winpr folder to framework structure.
#####################

IMPORTANT:

To compile an Mac application using the MacFreeRDP framework, the developer MUST specifically add the framework's Headers folder to the Headers Search Path in the application's Build Settings.

e.g. /Users/Username/Documents//FreeRDP/build/client/Mac/Debug/MacFreeRDP.framework/Headers
2013-07-22 12:38:15 -04:00
Benoît LeBlanc
20d3518c6b - MRDPView: rdpConnectError moved outside of the Framework, to the native App (in AppDelegate) This is now handled on the client side.
- freerdp_connect: all code paths now trigger a ConnectionResult event.
2013-07-19 16:33:20 -04:00
Benoît LeBlanc
d0a1563cb9 Fixed deadlock when closing session window. 2013-07-18 21:22:41 -04:00
Benoît LeBlanc
bbfdb853f6 MacFreeRDP: connection now starts asynchronously.
Replaced RunLoop implementation with standard pthreads.
2013-07-18 15:41:28 -04:00
Benoît LeBlanc
87b63aa0b2 MacFreeRDP: non-blocking connect 2013-07-17 16:04:55 -04:00
Benoît LeBlanc
83c69da98c MacFreeRDP: cleanup 2013-07-17 11:06:41 -04:00
Benoît LeBlanc
22b6878307 Custom cursor now visible on mac version. Cursor is now associated with NSView for automatic tracking area handling.
Makefile: updated post-build  NIB file generation events to apply to all generators for Mac Client.
2013-07-16 12:16:44 -04:00
Benoît LeBlanc
44ead029f7 MacFreeRDP: fixed incorrect invalidation region that caused "tiles". Removed unused variables. 2013-07-11 11:19:21 -07:00
Benoît LeBlanc
c17c2f811b FreeRDP:
- replaced char* by const char* in function prototypes
- MacFreeRDP: moved assignation of context function pointers
- freerdp: added more pointer and return value validations to prevent crashes
2013-07-04 14:42:40 -04:00
Benoît LeBlanc
96b9972307 MacFreeRDP: fixed crash when opening second session
(unrecognized selector sent to instance … )
2013-07-02 16:13:43 -04:00
Benoît LeBlanc
0f24f6490e MacFreeRDP - Replaced MRDPView instance in NIB with instance allocated by the API. 2013-06-27 11:22:15 -04:00
Benoît LeBlanc
ed4a25d1ae WaykClient (Mac): integrated MRDPView (allocated at runtime) 2013-06-26 13:45:12 -04:00
Benoît LeBlanc
44034305d3 Fixed output path for MacFreeRDP framework deployment.
MRDPView: replaced awakeFromNib with viewDidLoad
2013-06-25 16:05:37 -04:00
Marc-André Moreau
1fdcf5354c mfreerdp: change output name 2013-06-23 00:18:55 -04:00
Marc-André Moreau
3d479448a3 mfreerdp: refactoring 2013-06-22 22:55:51 -04:00
Marc-André Moreau
bda3a7e9cc mfreerdp: cleanup 2013-06-22 20:27:23 -04:00
Marc-André Moreau
bff4e22547 mfreerdp: remove cmake debug output 2013-06-22 18:38:35 -04:00
Benoît LeBlanc
1648ca2917 AsyncInput implementation.
WARNING: settings->AsyncInput intentionnally left at FALSE, because the input callback function does not seem to be triggered after a certain point. Possibility of a deadlock?
2013-06-20 20:55:49 -04:00
Benoît LeBlanc
7185c8a8fe mac client: Set clipboard redirection ON by default, small refactoring 2013-06-20 16:45:27 -04:00
Benoît LeBlanc
f24e6a2c3a mac client: async channels implementation 2013-06-20 15:00:50 -04:00
Benoît LeBlanc
57d99af6fd Mac client: removed non-async transport methods 2013-06-20 11:47:28 -04:00
Benoît LeBlanc
5a8318022d Fixed typo (AsyncChannels) 2013-06-20 10:42:11 -04:00
Benoît LeBlanc
19717162f0 mac client: implemented async update
Activated async transport, channels
Removed duplicate rdpClientContext definition
2013-06-20 10:03:20 -04:00
Benoît LeBlanc
04d471a063 Release resources 2013-06-18 15:33:18 -04:00
Benoît LeBlanc
8dfd4075e9 mac client: moved command-line parsing and context alloc from library to app 2013-06-18 14:30:21 -04:00
Benoît LeBlanc
3541ecb2ff Mac client: close app on window close. Renamed header. 2013-06-18 12:03:22 -04:00
Benoît LeBlanc
bc83a8700c mac client: cleanup, removed RAIL, global var 2013-06-17 21:21:42 -04:00
Benoît LeBlanc
307a2eb3f3 mac client: cleanup, removed RAIL, global variable 2013-06-17 21:20:56 -04:00
Benoît LeBlanc
45de8d4d14 Refactoring Mac app - update API, stripped RAIL code 2013-06-17 16:44:44 -04:00
Benoît LeBlanc
1910205d06 Refactoring - mac platform 2013-06-14 16:19:03 -04:00
Benoît LeBlanc
fb92750a4f Revert "Updating common API"
This reverts commit 85a4eb2996.
2013-06-14 10:00:19 -04:00