platform/upstream/freerdp.git
8 years agoFixed broken resource cleanup.
Armin Novak [Tue, 1 Mar 2016 16:30:08 +0000 (17:30 +0100)]
Fixed broken resource cleanup.

8 years agoFixed context reset of sample server.
Armin Novak [Tue, 1 Mar 2016 16:14:35 +0000 (17:14 +0100)]
Fixed context reset of sample server.

8 years agoFixed broken check.
Armin Novak [Tue, 1 Mar 2016 15:56:36 +0000 (16:56 +0100)]
Fixed broken check.

8 years agoAdded log messages for unsupported surface commands.
Armin Novak [Tue, 1 Mar 2016 15:39:53 +0000 (16:39 +0100)]
Added log messages for unsupported surface commands.

8 years agoFixed codec reset, now resetting resolution too.
Armin Novak [Tue, 1 Mar 2016 15:17:28 +0000 (16:17 +0100)]
Fixed codec reset, now resetting resolution too.

H264 and others require the surface resolution to work properly.
This initializes the codecs and the resolution on reset.

8 years agoMerge pull request #3163 from akallabeth/set_file_time
Martin Fleisz [Wed, 2 Mar 2016 08:43:46 +0000 (09:43 +0100)]
Merge pull request #3163 from akallabeth/set_file_time

Implemented SetFileTime

8 years agoMerge pull request #3179 from akallabeth/minor_fixes
Martin Fleisz [Wed, 2 Mar 2016 08:43:24 +0000 (09:43 +0100)]
Merge pull request #3179 from akallabeth/minor_fixes

Fix compiler warnings and FreeBSD compilation issue

8 years agoRemoved obsolete log message.
Armin Novak [Wed, 2 Mar 2016 08:16:59 +0000 (09:16 +0100)]
Removed obsolete log message.

8 years agoFixed uninitialized variable.
Armin Novak [Wed, 2 Mar 2016 08:16:49 +0000 (09:16 +0100)]
Fixed uninitialized variable.

8 years agoMerge pull request #3178 from hendwolt/master
Hardening [Tue, 1 Mar 2016 22:34:57 +0000 (23:34 +0100)]
Merge pull request #3178 from hendwolt/master

fix wayland-client.h not found

8 years agofix wayland-client.h not found
Hendrik Woltersdorf [Tue, 1 Mar 2016 20:49:21 +0000 (21:49 +0100)]
fix wayland-client.h not found

8 years agoMerge pull request #3160 from akallabeth/stream_fixes
Bernhard Miklautz [Tue, 1 Mar 2016 15:44:19 +0000 (16:44 +0100)]
Merge pull request #3160 from akallabeth/stream_fixes

Stream fixes

8 years agoAdded tests for remaining stream functions.
Armin Novak [Tue, 1 Mar 2016 10:40:11 +0000 (11:40 +0100)]
Added tests for remaining stream functions.

8 years agoFixed stream API for Stream_Copy.
Armin Novak [Tue, 1 Mar 2016 10:39:21 +0000 (11:39 +0100)]
Fixed stream API for Stream_Copy.

8 years agoReverted opaque structures.
Armin Novak [Tue, 1 Mar 2016 09:29:51 +0000 (10:29 +0100)]
Reverted opaque structures.

8 years agoMerge pull request #3176 from bmiklautz/shadow_subsystem
Norbert Federa [Mon, 29 Feb 2016 16:39:18 +0000 (17:39 +0100)]
Merge pull request #3176 from bmiklautz/shadow_subsystem

Export shadow subsystem

8 years agoMerge pull request #3171 from akallabeth/crypto_simplification
Bernhard Miklautz [Mon, 29 Feb 2016 16:10:53 +0000 (17:10 +0100)]
Merge pull request #3171 from akallabeth/crypto_simplification

Crypto simplification

8 years agoMerge pull request #3168 from akallabeth/visibility_fixes
Bernhard Miklautz [Mon, 29 Feb 2016 15:59:58 +0000 (16:59 +0100)]
Merge pull request #3168 from akallabeth/visibility_fixes

Fixed default visibility.

8 years agoci: build server side on windows
Bernhard Miklautz [Mon, 29 Feb 2016 15:25:04 +0000 (16:25 +0100)]
ci: build server side on windows

8 years agobuild: export freerdp-shadow
Bernhard Miklautz [Mon, 29 Feb 2016 15:22:24 +0000 (16:22 +0100)]
build: export freerdp-shadow

pkg-config and cmake find package

8 years agoshadow/subsystem: fix windows build
Bernhard Miklautz [Mon, 29 Feb 2016 15:02:13 +0000 (16:02 +0100)]
shadow/subsystem: fix windows build

* add dependency to freerdp-client
* add version information to freerdp-shadow-cli

8 years agobuild/win32: fix DLL version information
Bernhard Miklautz [Mon, 29 Feb 2016 15:00:35 +0000 (16:00 +0100)]
build/win32: fix DLL version information

Swap build and patch.
Now uses the format major.minor.patch.build

8 years agoRemoved module.def from build config.
Armin Novak [Mon, 29 Feb 2016 14:24:07 +0000 (15:24 +0100)]
Removed module.def from build config.

8 years agoMerge pull request #3167 from realjiangms/shadow_export_default_subsystem
Bernhard Miklautz [Mon, 29 Feb 2016 14:21:22 +0000 (15:21 +0100)]
Merge pull request #3167 from realjiangms/shadow_export_default_subsystem

server/shadow: Export API to set built-in subsystem modules for freerdp-shadow-subsystem

8 years agoRemoved windows module.def files.
Armin Novak [Mon, 29 Feb 2016 14:18:47 +0000 (15:18 +0100)]
Removed windows module.def files.

All symbols exported from libraries are declared
using *_API defines.

8 years agoExporting channel entry points.
Armin Novak [Mon, 29 Feb 2016 14:18:19 +0000 (15:18 +0100)]
Exporting channel entry points.

8 years agoFixed crypto tests.
Armin Novak [Mon, 29 Feb 2016 13:43:33 +0000 (14:43 +0100)]
Fixed crypto tests.

8 years agoReplaced stream manipulation with EnsureCapacity.
Armin Novak [Mon, 29 Feb 2016 11:54:31 +0000 (12:54 +0100)]
Replaced stream manipulation with EnsureCapacity.

8 years agoFixed invalid stream copy length.
Armin Novak [Mon, 29 Feb 2016 11:51:54 +0000 (12:51 +0100)]
Fixed invalid stream copy length.

8 years agoFixed indentation.
Armin Novak [Mon, 29 Feb 2016 10:12:32 +0000 (11:12 +0100)]
Fixed indentation.

8 years agoFixed memory leak.
Armin Novak [Mon, 29 Feb 2016 10:10:15 +0000 (11:10 +0100)]
Fixed memory leak.

8 years agoMerge pull request #3165 from akallabeth/printer_fix
Hardening [Mon, 29 Feb 2016 09:31:50 +0000 (10:31 +0100)]
Merge pull request #3165 from akallabeth/printer_fix

Printer fix

8 years agoRefactored crypto *_New functions.
Armin Novak [Mon, 29 Feb 2016 08:00:02 +0000 (09:00 +0100)]
Refactored crypto *_New functions.

8 years agoUpdated RC4 API, fixed crashing bug.
Armin Novak [Sun, 28 Feb 2016 10:12:17 +0000 (11:12 +0100)]
Updated RC4 API, fixed crashing bug.

8 years agoMerge pull request #3169 from realjiangms/android_fix_sound
akallabeth [Sun, 28 Feb 2016 09:33:25 +0000 (10:33 +0100)]
Merge pull request #3169 from realjiangms/android_fix_sound

android: Fix sound redirection.

8 years agoserver/shadow: Export API to set built-in subsystem modules for freerdp-shadow-subsystem
zihao.jiang [Fri, 26 Feb 2016 17:07:30 +0000 (01:07 +0800)]
server/shadow: Export API to set built-in subsystem modules for freerdp-shadow-subsystem

8 years agoandroid: Fix sound redirection.
zihao.jiang [Fri, 26 Feb 2016 18:20:49 +0000 (02:20 +0800)]
android: Fix sound redirection.
After #3097, the java side pass command line argument to JNI for freerdp settings. However there's several issues need to be fixed:
1. The argument /sound should be appended if freerdp is required to play sound at local device
2. The option value for "audio-mode" is not correct.
It should match the definition in client/common/cmdline.c
/* Audio Mode */
define AUDIO_MODE_REDIRECT     0 /* Bring to this computer */
define AUDIO_MODE_PLAY_ON_SERVER   1 /* Leave at remote computer */
define AUDIO_MODE_NONE         2 /* Do not play */
3. Uncomment support for WAVE_FORMAT_PCM in audin. I tested on my android phone and Nokia N1 tablet. It works on both device

8 years agoUnified encryption functions.
Armin Novak [Sat, 27 Feb 2016 22:28:49 +0000 (23:28 +0100)]
Unified encryption functions.

8 years agoRemoved crypto_nonce.
Armin Novak [Sat, 27 Feb 2016 21:39:45 +0000 (22:39 +0100)]
Removed crypto_nonce.

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 agoAdded API export for uwac.
Armin Novak [Sat, 27 Feb 2016 21:13:59 +0000 (22:13 +0100)]
Added API export for uwac.

8 years agoFixed dupliace FREERDP_API declarations.
Armin Novak [Sat, 27 Feb 2016 10:36:34 +0000 (11:36 +0100)]
Fixed dupliace FREERDP_API declarations.

8 years agoFixed default visibility.
Armin Novak [Fri, 26 Feb 2016 18:25:49 +0000 (19:25 +0100)]
Fixed default visibility.

When nothing is declared, only export symbols defined
with WINPR_API or FREERDP_API defined.
Override this setting if BUILD_TESTING to allow tests
access to internal functions usually not exposed.

8 years agoMerge pull request #3157 from DavBfr/Fix-bad-malloc-size
akallabeth [Fri, 26 Feb 2016 17:53:45 +0000 (18:53 +0100)]
Merge pull request #3157 from DavBfr/Fix-bad-malloc-size

Fix bad malloc size in statvfs

8 years agoFix bad malloc size in statvfs
David PHAM-VAN [Fri, 12 Feb 2016 19:32:18 +0000 (11:32 -0800)]
Fix bad malloc size in statvfs

8 years agoPrinter driver from command line now used.
Armin Novak [Fri, 26 Feb 2016 14:21:19 +0000 (15:21 +0100)]
Printer driver from command line now used.

8 years agoFixed duplicate loading of smartcard and printers.
Armin Novak [Fri, 26 Feb 2016 13:50:27 +0000 (14:50 +0100)]
Fixed duplicate loading of smartcard and printers.

8 years agoAdded support for android SetFileTime.
Armin Novak [Fri, 26 Feb 2016 11:13:02 +0000 (12:13 +0100)]
Added support for android SetFileTime.
Deactivated libjpeg support for android.

8 years agoFixed missing iOS UTIME_OMIT.
Armin Novak [Fri, 26 Feb 2016 10:22:56 +0000 (11:22 +0100)]
Fixed missing iOS UTIME_OMIT.

8 years agoImplemented SetFileTime
Armin Novak [Fri, 26 Feb 2016 09:48:53 +0000 (10:48 +0100)]
Implemented SetFileTime

8 years agoMerge pull request #3151 from akallabeth/timezone_refactor
Martin Fleisz [Fri, 26 Feb 2016 08:57:35 +0000 (09:57 +0100)]
Merge pull request #3151 from akallabeth/timezone_refactor

Timezone refactor

8 years agoMerge pull request #3156 from akallabeth/ssl_wrapper_merge
Hardening [Fri, 26 Feb 2016 08:52:43 +0000 (09:52 +0100)]
Merge pull request #3156 from akallabeth/ssl_wrapper_merge

Ssl wrapper merge

8 years agoFixed indentation.
Armin Novak [Fri, 26 Feb 2016 08:28:54 +0000 (09:28 +0100)]
Fixed indentation.

8 years agoReplaced magic numbers with defines.
Armin Novak [Fri, 26 Feb 2016 08:27:53 +0000 (09:27 +0100)]
Replaced magic numbers with defines.

8 years agoMerge pull request #3161 from bmiklautz/uwac_versioning
akallabeth [Fri, 26 Feb 2016 08:23:34 +0000 (09:23 +0100)]
Merge pull request #3161 from bmiklautz/uwac_versioning

uwac: versioning and export

8 years agouwac: generate .pc and cmake find-module
Bernhard Miklautz [Thu, 25 Feb 2016 22:47:32 +0000 (23:47 +0100)]
uwac: generate .pc and cmake find-module

8 years agouwac: enable library versioning
Bernhard Miklautz [Thu, 25 Feb 2016 22:46:56 +0000 (23:46 +0100)]
uwac: enable library versioning

8 years agobuild winpr: export WINPR_API_VERSION
Bernhard Miklautz [Thu, 25 Feb 2016 22:38:53 +0000 (23:38 +0100)]
build winpr: export WINPR_API_VERSION

8 years agocmake/FindWayland: cleanup
Bernhard Miklautz [Thu, 25 Feb 2016 20:57:56 +0000 (21:57 +0100)]
cmake/FindWayland: cleanup

* use consistent naming
* remove trailing blanks

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 agoFixed missing semicolon.
Armin Novak [Thu, 25 Feb 2016 08:02:46 +0000 (09:02 +0100)]
Fixed missing semicolon.

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 agoUnified hmac functions.
Armin Novak [Wed, 24 Feb 2016 20:45:09 +0000 (21:45 +0100)]
Unified hmac functions.

8 years agoUnified random functions and remaining MD5.
Armin Novak [Wed, 24 Feb 2016 19:39:49 +0000 (20:39 +0100)]
Unified random functions and remaining MD5.

8 years agoUpdated cryto wrapper API.
Armin Novak [Wed, 24 Feb 2016 19:32:20 +0000 (20:32 +0100)]
Updated cryto wrapper API.

8 years agoFixed argument checks and return values.
Armin Novak [Wed, 24 Feb 2016 19:16:33 +0000 (20:16 +0100)]
Fixed argument checks and return values.

8 years agoFixed naming of static functions.
Armin Novak [Wed, 24 Feb 2016 19:16:19 +0000 (20:16 +0100)]
Fixed naming of static functions.

8 years agoUnified RC4 functions.
Armin Novak [Wed, 24 Feb 2016 16:04:03 +0000 (17:04 +0100)]
Unified RC4 functions.

8 years agoUnified md5 functions.
Armin Novak [Wed, 24 Feb 2016 15:46:25 +0000 (16:46 +0100)]
Unified md5 functions.

8 years agoUnified sha1 functions.
Armin Novak [Wed, 24 Feb 2016 15:36:15 +0000 (16:36 +0100)]
Unified sha1 functions.

8 years agoFixed return value for DST.
Armin Novak [Wed, 24 Feb 2016 08:43:53 +0000 (09:43 +0100)]
Fixed return value for DST.

8 years agoReadded read timezone from link.
Armin Novak [Wed, 24 Feb 2016 08:42:12 +0000 (09:42 +0100)]
Readded read timezone from link.

8 years agoImplemented timezone detection for android
Armin Novak [Tue, 23 Feb 2016 17:15:25 +0000 (18:15 +0100)]
Implemented timezone detection for android

Refactored version of patch from pxx02134

8 years agoRefactored timezone functions.
Armin Novak [Tue, 23 Feb 2016 17:08:18 +0000 (18:08 +0100)]
Refactored timezone functions.

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