platform/upstream/freerdp.git
8 years agoFixed const argument for Stream_Write.
Armin Novak [Sat, 27 Feb 2016 21:16:41 +0000 (22:16 +0100)]
Fixed const argument for Stream_Write.

8 years agoConverted Stream defines to inline functions.
Armin Novak [Thu, 25 Feb 2016 19:13:56 +0000 (20:13 +0100)]
Converted Stream defines to inline functions.

Using inline functions allows compiler type checks

8 years agoFixed Stream API misuse.
Armin Novak [Thu, 25 Feb 2016 19:01:12 +0000 (20:01 +0100)]
Fixed Stream API misuse.

8 years agoFixed stream copy in update_message_SurfaceCommand
Armin Novak [Thu, 25 Feb 2016 18:37:20 +0000 (19:37 +0100)]
Fixed stream copy in update_message_SurfaceCommand

8 years agoMerge pull request #3159 from bmiklautz/disable_mipsel
akallabeth [Thu, 25 Feb 2016 15:57:48 +0000 (16:57 +0100)]
Merge pull request #3159 from bmiklautz/disable_mipsel

android: disable mips build

8 years agoMerge pull request #3140 from hardening/printer_work
Bernhard Miklautz [Thu, 25 Feb 2016 15:57:34 +0000 (16:57 +0100)]
Merge pull request #3140 from hardening/printer_work

Misc changes

8 years agoandroid: disable mips build
Bernhard Miklautz [Thu, 25 Feb 2016 15:31:20 +0000 (16:31 +0100)]
android: disable mips build

mips build causes problems when building openssl during integration
builds. Disable it for now

8 years agoFixed indentation
David FORT [Thu, 25 Feb 2016 14:03:14 +0000 (15:03 +0100)]
Fixed indentation

8 years agoMerge pull request #3042 from hardening/uwac
akallabeth [Thu, 25 Feb 2016 08:00:50 +0000 (09:00 +0100)]
Merge pull request #3042 from hardening/uwac

Move wayland client to UWAC

8 years agoAdded some checks
David FORT [Wed, 24 Feb 2016 23:41:19 +0000 (00:41 +0100)]
Added some checks

8 years agoMerge pull request #3149 from bmiklautz/feb22
akallabeth [Tue, 23 Feb 2016 19:23:52 +0000 (20:23 +0100)]
Merge pull request #3149 from bmiklautz/feb22

Misc fixes

8 years agoMerge pull request #3150 from xhaakon/subsystem-lib
Bernhard Miklautz [Tue, 23 Feb 2016 18:11:32 +0000 (19:11 +0100)]
Merge pull request #3150 from xhaakon/subsystem-lib

server/shadow: Build libraries for shadow subsystems

8 years agoserver/shadow: Build libraries for shadow subsystems
Jakub Adam [Tue, 23 Feb 2016 09:49:52 +0000 (10:49 +0100)]
server/shadow: Build libraries for shadow subsystems

Commit 60ae27b0 decoupled subsystem implementations and shadow framework
core by moving subsystem specific code right into freerdp-shadow-cli.
This, however, doesn't allow applications that would like to link
libfreerdp-shadow, in order to embed RDP shadow server, to reuse also
the subsystem module.

3rd party developers now have to either provide their own subsystem code
(copied from FreeRDP sources or written from scratch) or be limited to
usaging freerdp-shadow-cli executable, which doesn't expose all
functions of the shadow server library (e.g. enumeration of available
monitors).

This change moves the shadow subsystem out of the executable into new
freerdp-shadow-subsystem library, which freerdp-shadow-cli and
potentially other applications can link to.

8 years agoMerge pull request #3119 from akallabeth/abort_event_reset
Bernhard Miklautz [Tue, 23 Feb 2016 16:14:08 +0000 (17:14 +0100)]
Merge pull request #3119 from akallabeth/abort_event_reset

Resetting abortEvent only on connect and reconnect.

8 years agoMerge pull request #3015 from bmiklautz/pull/2936
akallabeth [Tue, 23 Feb 2016 15:46:16 +0000 (16:46 +0100)]
Merge pull request #3015 from bmiklautz/pull/2936

tcp: change TCP_USER_TIMEOUT to 16000

8 years agoRemoved function call with invalid arguments.
Armin Novak [Tue, 23 Feb 2016 14:58:48 +0000 (15:58 +0100)]
Removed function call with invalid arguments.

8 years agoResetting abortEvent only on connect and reconnect.
Armin Novak [Wed, 10 Feb 2016 10:20:52 +0000 (11:20 +0100)]
Resetting abortEvent only on connect and reconnect.

8 years agotimezon: add support for tz package
Bernhard Miklautz [Tue, 23 Feb 2016 15:25:05 +0000 (16:25 +0100)]
timezon: add support for tz package

Some distributions don't use /etc/localtime but /etc/TZ instead. If
/etc/localtime isn't find try this.

For details see #2818

8 years agotcp: set the timeout to 9s
Bernhard Miklautz [Tue, 23 Feb 2016 14:34:58 +0000 (15:34 +0100)]
tcp: set the timeout to 9s

Set the TCP_USER_TIMEOUT to 9s as suggested by @giox069.
See #3015 for details

8 years agoIncrease TCP_USER_TIMEOUT to avoid disconnections.
volth [Mon, 19 Oct 2015 18:29:30 +0000 (18:29 +0000)]
Increase TCP_USER_TIMEOUT to avoid disconnections.

TCP_USER_TIMEOUT value is too small, it is only 4 seconds.
That causes random disconnections reported in the bug report https://github.com/FreeRDP/FreeRDP/issues/2802
This patch should fix the bug report https://github.com/FreeRDP/FreeRDP/issues/2802

8 years agoFix compilation with out-of-tree builds
David FORT [Tue, 23 Feb 2016 13:09:14 +0000 (14:09 +0100)]
Fix compilation with out-of-tree builds

Generated files weren't in the include path

8 years agoFixed detection of wayland libs
David FORT [Tue, 23 Feb 2016 08:22:15 +0000 (09:22 +0100)]
Fixed detection of wayland libs

8 years agoFix compilation and detection under debian/ubuntu
David FORT [Mon, 22 Feb 2016 15:03:57 +0000 (16:03 +0100)]
Fix compilation and detection under debian/ubuntu

8 years agoIntegrate UWAC in to the FreeRDP source tree
David FORT [Mon, 18 Jan 2016 14:55:33 +0000 (15:55 +0100)]
Integrate UWAC in to the FreeRDP source tree

So the wayland client can still be built without installing UWAC as a dependency.

8 years agoFixed detection of UWAC library
David FORT [Tue, 12 Jan 2016 21:29:38 +0000 (22:29 +0100)]
Fixed detection of UWAC library

8 years agoMove wayland client to UWAC
David FORT [Wed, 6 Jan 2016 22:56:05 +0000 (23:56 +0100)]
Move wayland client to UWAC

8 years agoMerge pull request #3148 from mfleisz/win32_include_fix
Bernhard Miklautz [Tue, 23 Feb 2016 10:44:58 +0000 (11:44 +0100)]
Merge pull request #3148 from mfleisz/win32_include_fix

winpr/file: Add missing include (io.h) for windows builds

8 years agoMerge pull request #2851 from ilammy/x11-cliprdr/improve-format-support
akallabeth [Tue, 23 Feb 2016 08:56:17 +0000 (09:56 +0100)]
Merge pull request #2851 from ilammy/x11-cliprdr/improve-format-support

Improve clipboard format support in X11 client

8 years agowinpr/file: Add missing include (io.h) for windows builds
Martin Fleisz [Tue, 23 Feb 2016 08:55:55 +0000 (09:55 +0100)]
winpr/file: Add missing include (io.h) for windows builds

8 years agoMerge pull request #3145 from giox069/master
akallabeth [Tue, 23 Feb 2016 08:37:31 +0000 (09:37 +0100)]
Merge pull request #3145 from giox069/master

Fix char signedness in glyph offset calculation, fixes #2137

8 years agoclient/X11: harden xf_cliprdr_parse_server_format_list()
ilammy [Mon, 22 Feb 2016 22:14:30 +0000 (00:14 +0200)]
client/X11: harden xf_cliprdr_parse_server_format_list()

* Make sure that numFormats has reasonable value

This will help catching errors like writing -1 as an unsigned number
of formats into the serialized stream, or trying to read the property
after someone else erroneosly messed with it, or other similar mistakes
which would result into reading and then sending garbage to the server.

We read the list xf_cliprdr_get_raw_server_formats() from an X window
property. Properties generally cannot be larger than 4 KB and each
format requires at least 5 bytes (most of them are named, though),
which gives us 512-ish limit on the number of formats we can squeeze
into the property.

However, it's hard to find an application that provides more than
20 formats (I've seen like 15 for MS Office apps), thus I believe
we can safely assume than anything that does not fit into a byte
means that we are reading garbage rather than a good format list.

* Check for the end of stream when reading format names

This also prevents reading garbage and getting segmentation faults
and Valgrind warnings when somebody somewhere sometimes forgets to
put a terminating null character where it belongs.

strnlen() and strndup() functions are provided by POSIX.1-2008
which we can reasonably expect to be available in 2016.

8 years agofix spelling
Bernhard Miklautz [Mon, 22 Feb 2016 16:01:43 +0000 (17:01 +0100)]
fix spelling

replace occured with occurred
Fixes #3142

8 years agoMerge pull request #3136 from bmiklautz/winpr_version
akallabeth [Mon, 22 Feb 2016 12:54:08 +0000 (13:54 +0100)]
Merge pull request #3136 from bmiklautz/winpr_version

winpr: BUMP the API version to 1.2

8 years agoMerge pull request #3147 from akallabeth/win_debug_symbol_fix
Bernhard Miklautz [Mon, 22 Feb 2016 11:48:42 +0000 (12:48 +0100)]
Merge pull request #3147 from akallabeth/win_debug_symbol_fix

Installing debug symbols only if activated.

8 years agoInstalling debug symbols only if activated.
Armin Novak [Mon, 22 Feb 2016 09:27:50 +0000 (10:27 +0100)]
Installing debug symbols only if activated.

8 years agoFix char signedness in glyph offset calculation, fixes #2137
Giovanni Panozzo [Sun, 21 Feb 2016 16:52:52 +0000 (17:52 +0100)]
Fix char signedness in glyph offset calculation, fixes #2137

8 years agoMerge pull request #3143 from akallabeth/deny_cert_if_cred_from_stdin
Bernhard Miklautz [Fri, 19 Feb 2016 12:27:13 +0000 (13:27 +0100)]
Merge pull request #3143 from akallabeth/deny_cert_if_cred_from_stdin

Abort certificate accept if password is read from stdin.

8 years agoAbort certificate accept if password is read from stdin.
Armin Novak [Fri, 19 Feb 2016 09:22:38 +0000 (10:22 +0100)]
Abort certificate accept if password is read from stdin.

8 years agoAdd support for saveSessionInfo PDU
David FORT [Thu, 18 Feb 2016 13:19:36 +0000 (14:19 +0100)]
Add support for saveSessionInfo PDU

This patch adds some callbacks so that the client can have access to the informations
stored in this packet. Server-side implementation is also there, so that a server
can send these informations to the client.

8 years agoAdded missing checks
David FORT [Thu, 11 Feb 2016 21:45:30 +0000 (22:45 +0100)]
Added missing checks

8 years agoMutualize definitions for the printer channel
David FORT [Wed, 3 Feb 2016 09:26:59 +0000 (10:26 +0100)]
Mutualize definitions for the printer channel

8 years agowinpr: BUMP the API version to 1.2
Bernhard Miklautz [Tue, 16 Feb 2016 16:39:22 +0000 (17:39 +0100)]
winpr: BUMP the API version to 1.2

This is required that the exported cmake find module can be
differentiated from the "old" one. This allows it to have
multiple winpr API version installed in parallel.

find_package should now be used with an explicit version number
set like:

find_package(WinPR 1.2 REQUIRED)

8 years agoMerge pull request #2710 from akallabeth/cert_temp_accept_v2
Hardening [Mon, 15 Feb 2016 12:52:47 +0000 (13:52 +0100)]
Merge pull request #2710 from akallabeth/cert_temp_accept_v2

Extended certificate callbacks.

8 years agoMerge pull request #3130 from pxx02134/patch-1
Hardening [Sun, 14 Feb 2016 13:18:26 +0000 (14:18 +0100)]
Merge pull request #3130 from pxx02134/patch-1

Update BookmarkDB.java

8 years agoMerge pull request #3131 from pxx02134/patch-2
Hardening [Sun, 14 Feb 2016 13:17:52 +0000 (14:17 +0100)]
Merge pull request #3131 from pxx02134/patch-2

Update AndroidManifest.xml

8 years agoMerge pull request #3124 from nathankidd/region16_rects-handle-null
Hardening [Fri, 12 Feb 2016 20:19:13 +0000 (21:19 +0100)]
Merge pull request #3124 from nathankidd/region16_rects-handle-null

libfreerdp-codec: Make region16_rects() handle NULL nbRects

8 years agolibfreerdp-codec: Make region16_rects() handle NULL nbRects
Nathan Kidd [Fri, 12 Feb 2016 00:34:48 +0000 (19:34 -0500)]
libfreerdp-codec: Make region16_rects() handle NULL nbRects

Now matches header documentation.  Also cleans up related doc grammar.

8 years agoMerge pull request #3123 from nfedera/fix-keyboardtype-7
Bernhard Miklautz [Fri, 12 Feb 2016 09:43:25 +0000 (10:43 +0100)]
Merge pull request #3123 from nfedera/fix-keyboardtype-7

Several fixes for keyboard type 7 (japanese)

8 years agoMerge pull request #3110 from akallabeth/mac_os_ssl_warning_fix
Hardening [Thu, 11 Feb 2016 21:21:33 +0000 (22:21 +0100)]
Merge pull request #3110 from akallabeth/mac_os_ssl_warning_fix

Mac os ssl warning fix

8 years agoSeveral fixes for keyboard type 7 (japanese)
Norbert Federa [Thu, 11 Feb 2016 20:40:50 +0000 (21:40 +0100)]
Several fixes for keyboard type 7 (japanese)

8 years agoUpdate AndroidManifest.xml
pxx02134 [Thu, 11 Feb 2016 03:24:47 +0000 (12:24 +0900)]
Update AndroidManifest.xml

ACCESS_NETWORK_STATE statement duplicated. It cause warnings while building.

8 years agoUpdate BookmarkDB.java
pxx02134 [Thu, 11 Feb 2016 03:21:11 +0000 (12:21 +0900)]
Update BookmarkDB.java

There seems to be two commas forgot.

8 years agoMerge pull request #3116 from akallabeth/win_unicode_arg_fix
Hardening [Wed, 10 Feb 2016 10:17:34 +0000 (11:17 +0100)]
Merge pull request #3116 from akallabeth/win_unicode_arg_fix

Reading unicode from command line.

8 years agoPrinting help on invalid command line again.
Armin Novak [Tue, 9 Feb 2016 08:36:00 +0000 (09:36 +0100)]
Printing help on invalid command line again.

8 years agoReading unicode from command line.
Armin Novak [Mon, 8 Feb 2016 13:36:31 +0000 (14:36 +0100)]
Reading unicode from command line.

8 years agoMerge pull request #3111 from colemickens/hidpi-cli
Norbert Federa [Mon, 8 Feb 2016 12:10:50 +0000 (13:10 +0100)]
Merge pull request #3111 from colemickens/hidpi-cli

Enable display scaling in client

8 years agoEnable display scaling in client
Isaac Richter [Wed, 4 Mar 2015 14:37:25 +0000 (09:37 -0500)]
Enable display scaling in client

8 years agoFixed API for old openssl versions < 1.0.0
Armin Novak [Fri, 5 Feb 2016 10:52:07 +0000 (11:52 +0100)]
Fixed API for old openssl versions < 1.0.0

8 years agoMerge pull request #3113 from akallabeth/remove_broken_rdpdr_check
Hardening [Fri, 5 Feb 2016 10:12:48 +0000 (11:12 +0100)]
Merge pull request #3113 from akallabeth/remove_broken_rdpdr_check

Removed broken check, fixes #3112

8 years agoRemoved broken check, fixes #3112
Armin Novak [Fri, 5 Feb 2016 09:50:26 +0000 (10:50 +0100)]
Removed broken check, fixes #3112

8 years agoUpdated android API.
Armin Novak [Fri, 5 Feb 2016 01:32:47 +0000 (02:32 +0100)]
Updated android API.

8 years agoNot building GetLine on android and ios.
Armin Novak [Fri, 18 Dec 2015 09:36:28 +0000 (10:36 +0100)]
Not building GetLine on android and ios.

8 years agoReplaced getline with custom GetLine.
Armin Novak [Fri, 18 Dec 2015 08:45:44 +0000 (09:45 +0100)]
Replaced getline with custom GetLine.

8 years agoMoved common code from cli clients to client lib.
Armin Novak [Thu, 17 Dec 2015 15:43:55 +0000 (16:43 +0100)]
Moved common code from cli clients to client lib.

8 years agoFixed warning.
Armin Novak [Thu, 17 Dec 2015 15:43:49 +0000 (16:43 +0100)]
Fixed warning.

8 years agoImplemented temporary certificate accept.
Armin Novak [Mon, 14 Dec 2015 13:02:49 +0000 (14:02 +0100)]
Implemented temporary certificate accept.

Certificates can now be accepted temporarily.
The callbacks for certificate validation have been
modified to extend the information presented to the user.

8 years agoFixed allocation issue with common_name.
Armin Novak [Mon, 14 Dec 2015 13:01:12 +0000 (14:01 +0100)]
Fixed allocation issue with common_name.

8 years agoMerge pull request #3097 from akallabeth/android_api_upgrade_v4
Martin Fleisz [Thu, 4 Feb 2016 15:20:59 +0000 (16:20 +0100)]
Merge pull request #3097 from akallabeth/android_api_upgrade_v4

Android api upgrade and restructuring

8 years agoRemoved android SDK dependency for native build.
Armin Novak [Thu, 4 Feb 2016 15:09:49 +0000 (16:09 +0100)]
Removed android SDK dependency for native build.

8 years agoMerge pull request #3108 from akallabeth/log_leve_adjust
Bernhard Miklautz [Thu, 4 Feb 2016 14:05:07 +0000 (15:05 +0100)]
Merge pull request #3108 from akallabeth/log_leve_adjust

Log level adjustments

8 years agoRemoved hardcoded debug mode.
Armin Novak [Thu, 4 Feb 2016 13:33:28 +0000 (14:33 +0100)]
Removed hardcoded debug mode.

8 years agoFixed argument for freerdp source.
Armin Novak [Thu, 4 Feb 2016 12:56:33 +0000 (13:56 +0100)]
Fixed argument for freerdp source.

8 years agoMerge pull request #3109 from nfedera/fix-x11-xdgh-types-collision
Norbert Federa [Thu, 4 Feb 2016 12:04:41 +0000 (13:04 +0100)]
Merge pull request #3109 from nfedera/fix-x11-xdgh-types-collision

fix X11/Xdg.h typedef collision fix

8 years agoFixed compiler warning about cast.
Armin Novak [Thu, 4 Feb 2016 11:57:21 +0000 (12:57 +0100)]
Fixed compiler warning about cast.

8 years agoRemoved obsolete APPLE preprocessor switch.
Armin Novak [Thu, 4 Feb 2016 11:55:11 +0000 (12:55 +0100)]
Removed obsolete APPLE preprocessor switch.

8 years agofix X11/Xdg.h typedef collision fix
Norbert Federa [Wed, 3 Feb 2016 20:32:55 +0000 (21:32 +0100)]
fix X11/Xdg.h typedef collision fix

8 years agordp_print_errinfo now uses INFO log level.
Armin Novak [Thu, 4 Feb 2016 10:41:54 +0000 (11:41 +0100)]
rdp_print_errinfo now uses INFO log level.

8 years agoFunction freerdp_set_error_info fix
Armin Novak [Thu, 4 Feb 2016 10:40:42 +0000 (11:40 +0100)]
Function freerdp_set_error_info fix

The public function did not wrap rdp_set_error_info.

8 years agoDisconnect log message now uses debug level.
Armin Novak [Thu, 4 Feb 2016 10:39:57 +0000 (11:39 +0100)]
Disconnect log message now uses debug level.

8 years agoMerge pull request #3107 from ccpp/tls-sni
akallabeth [Thu, 4 Feb 2016 08:56:52 +0000 (09:56 +0100)]
Merge pull request #3107 from ccpp/tls-sni

Enable support for SNI on client side

8 years agoMerge pull request #3079 from akallabeth/drive_hotplug_fix
Hardening [Thu, 4 Feb 2016 08:06:43 +0000 (09:06 +0100)]
Merge pull request #3079 from akallabeth/drive_hotplug_fix

Fixed argument checks for drive channel.

8 years agoEnable support for SNI on client side
Christian Plattner [Thu, 4 Feb 2016 07:34:51 +0000 (08:34 +0100)]
Enable support for SNI on client side

8 years agoMerge pull request #3105 from nfedera/fix-cmake-include-names
akallabeth [Wed, 3 Feb 2016 12:55:37 +0000 (13:55 +0100)]
Merge pull request #3105 from nfedera/fix-cmake-include-names

appropriate names in server & client cmake exports

8 years agoappropriate names in server & client cmake exports
Norbert Federa [Wed, 3 Feb 2016 12:37:35 +0000 (13:37 +0100)]
appropriate names in server & client cmake exports

8 years agoMerge pull request #3104 from akallabeth/sign_mismatch_fixes
Norbert Federa [Wed, 3 Feb 2016 11:56:45 +0000 (12:56 +0100)]
Merge pull request #3104 from akallabeth/sign_mismatch_fixes

Sign mismatch warnings fixed

8 years agoFixed inverted check.
Armin Novak [Wed, 3 Feb 2016 11:46:02 +0000 (12:46 +0100)]
Fixed inverted check.

8 years agoRemoved unused variable.
Armin Novak [Wed, 3 Feb 2016 11:45:49 +0000 (12:45 +0100)]
Removed unused variable.

8 years agoFixed initialization warning.
Armin Novak [Wed, 3 Feb 2016 11:45:31 +0000 (12:45 +0100)]
Fixed initialization warning.

8 years agoMerge pull request #3094 from DavBfr/mac-adpcm
akallabeth [Wed, 3 Feb 2016 11:11:27 +0000 (12:11 +0100)]
Merge pull request #3094 from DavBfr/mac-adpcm

Add ADPCM codec for Mac client
@DavBfr Thx for this nice addition!

8 years agoFixed flac caps creation.
Armin Novak [Wed, 3 Feb 2016 10:55:23 +0000 (11:55 +0100)]
Fixed flac caps creation.

8 years agoFixed constant definition.
Armin Novak [Wed, 3 Feb 2016 10:51:31 +0000 (11:51 +0100)]
Fixed constant definition.

8 years agoFixed _socket error check.
Armin Novak [Wed, 3 Feb 2016 10:45:22 +0000 (11:45 +0100)]
Fixed _socket error check.

8 years agoFixed error check.
Armin Novak [Wed, 3 Feb 2016 10:43:01 +0000 (11:43 +0100)]
Fixed error check.

8 years agoFixed unsigned underflow.
Armin Novak [Wed, 3 Feb 2016 10:30:15 +0000 (11:30 +0100)]
Fixed unsigned underflow.

8 years agoFixed invalid boolean check.
Armin Novak [Wed, 3 Feb 2016 10:23:41 +0000 (11:23 +0100)]
Fixed invalid boolean check.

8 years agoFixed unused check.
Armin Novak [Wed, 3 Feb 2016 10:22:27 +0000 (11:22 +0100)]
Fixed unused check.

8 years agoUse ERROR_INVALID_DATA for short buffers.
Armin Novak [Wed, 3 Feb 2016 10:04:35 +0000 (11:04 +0100)]
Use ERROR_INVALID_DATA for short buffers.

8 years agoMerge pull request #3103 from llyzs/memfix
Martin Fleisz [Wed, 3 Feb 2016 08:46:16 +0000 (09:46 +0100)]
Merge pull request #3103 from llyzs/memfix

gcc: assigned string must not be freed.

8 years agogcc: assigned string must not be freed.
Vic Lee [Wed, 3 Feb 2016 05:34:58 +0000 (13:34 +0800)]
gcc: assigned string must not be freed.

8 years agoActivate WITH_MACAUDIO flag if the build is for OS X
David PHAM-VAN [Tue, 2 Feb 2016 19:58:05 +0000 (11:58 -0800)]
Activate WITH_MACAUDIO flag if the build is for OS X