platform/upstream/freerdp.git
7 years agoMoved format size calculation out of loop.
Armin Novak [Thu, 24 Nov 2016 09:01:45 +0000 (10:01 +0100)]
Moved format size calculation out of loop.

7 years agoIgnore alpha channel in freerdp_image_copy
Armin Novak [Thu, 24 Nov 2016 08:27:19 +0000 (09:27 +0100)]
Ignore alpha channel in freerdp_image_copy

When copying image data consider formats that only differ on use
of alpha data equal. This allows using the optimized copy routine
instead of the slower color conversion routine. Fixes #3616

7 years agoMerge pull request #3612 from akallabeth/align_fix
Norbert Federa [Wed, 23 Nov 2016 16:57:47 +0000 (17:57 +0100)]
Merge pull request #3612 from akallabeth/align_fix

Fixed broken scanline alignment.

7 years agoMerge pull request #3603 from realjiangms/fix_shadow_resize
Martin Fleisz [Wed, 23 Nov 2016 14:47:32 +0000 (15:47 +0100)]
Merge pull request #3603 from realjiangms/fix_shadow_resize

X11/client: call gdi resize on hw desktop resize.

7 years agoFixed broken scanline alignment.
Armin Novak [Wed, 23 Nov 2016 11:54:20 +0000 (12:54 +0100)]
Fixed broken scanline alignment.

7 years agoMerge pull request #3608 from mfleisz/msvc10_fixes
Martin Fleisz [Tue, 22 Nov 2016 13:00:08 +0000 (14:00 +0100)]
Merge pull request #3608 from mfleisz/msvc10_fixes

codec: Fix compilation with VS2010

7 years agocodec: Fix compilation with VS2010
Martin Fleisz [Tue, 22 Nov 2016 11:12:08 +0000 (12:12 +0100)]
codec: Fix compilation with VS2010

7 years agoMerge pull request #3594 from akallabeth/line_draw_color_format
Martin Fleisz [Fri, 18 Nov 2016 11:46:14 +0000 (12:46 +0100)]
Merge pull request #3594 from akallabeth/line_draw_color_format

Fixed line drawing color format #3592

7 years agoMerge pull request #3581 from akallabeth/alignment_fix
Martin Fleisz [Thu, 17 Nov 2016 14:41:17 +0000 (15:41 +0100)]
Merge pull request #3581 from akallabeth/alignment_fix

Fixed surface alignment.

7 years agoX11/client: call gdi resize on hw desktop resize. The gdi primary buffer is used...
zihao.jiang [Thu, 17 Nov 2016 06:36:02 +0000 (14:36 +0800)]
X11/client: call gdi resize on hw desktop resize. The gdi primary buffer is used in client/X11/xf_gdi.c, it should be big enough to hold the full screen update

7 years agoMerge pull request #3593 from ccpp/gateway-http-bugfix
akallabeth [Wed, 16 Nov 2016 18:27:55 +0000 (19:27 +0100)]
Merge pull request #3593 from ccpp/gateway-http-bugfix

Bugfix in RDP Gateway HTTP: read/skip full HTTP body

7 years agoMerge pull request #3597 from awakecoding/tls_channel_fix
Marc-André Moreau [Wed, 16 Nov 2016 16:37:14 +0000 (11:37 -0500)]
Merge pull request #3597 from awakecoding/tls_channel_fix

Virtual Channel Mapping Fix

7 years agochannels: properly handle VirtualChannelEntryEx in static virtual channel loading
Marc-André Moreau [Wed, 16 Nov 2016 14:52:24 +0000 (09:52 -0500)]
channels: properly handle VirtualChannelEntryEx in static virtual channel loading

7 years agochannels/drdynvc: fix channel entry point name
Marc-André Moreau [Tue, 15 Nov 2016 17:37:50 +0000 (12:37 -0500)]
channels/drdynvc: fix channel entry point name

7 years agochannels: remove thread-local storage usage
Marc-André Moreau [Tue, 15 Nov 2016 16:41:01 +0000 (11:41 -0500)]
channels: remove thread-local storage usage

7 years agochannels: migrate drdynvc to extended virtual channel API
Marc-André Moreau [Tue, 15 Nov 2016 15:58:38 +0000 (10:58 -0500)]
channels: migrate drdynvc to extended virtual channel API

7 years agochannels: prepare virtual channel system for extended virtual channel API
Marc-André Moreau [Tue, 15 Nov 2016 14:09:30 +0000 (09:09 -0500)]
channels: prepare virtual channel system for extended virtual channel API

7 years agochannels: start working on extended virtual channel API
Marc-André Moreau [Mon, 14 Nov 2016 21:44:45 +0000 (16:44 -0500)]
channels: start working on extended virtual channel API

7 years agochannels: restore global tables for initHandle, openHandle mappings instead of thread...
Marc-André Moreau [Mon, 14 Nov 2016 20:23:05 +0000 (15:23 -0500)]
channels: restore global tables for initHandle, openHandle mappings instead of thread local storage

7 years agoFixed line drawing color format #3592
Armin Novak [Mon, 14 Nov 2016 08:36:16 +0000 (09:36 +0100)]
Fixed line drawing color format #3592

7 years agoBugfix in RDP Gateway HTTP: read/skip full HTTP body for non-RPC responses
Christian Plattner [Sun, 13 Nov 2016 02:26:01 +0000 (03:26 +0100)]
Bugfix in RDP Gateway HTTP: read/skip full HTTP body for non-RPC responses

This fixes issues #3300 and #3479, but it reveals that there might be a timeout issue with /gt:http and /gt:auto

7 years agoMerge pull request #3572 from rjcorrig/maclogin
akallabeth [Thu, 10 Nov 2016 07:56:34 +0000 (08:56 +0100)]
Merge pull request #3572 from rjcorrig/maclogin

client/mac: Run password dialog as a modal sheet and set window title to server:port

7 years agoMerge pull request #3578 from realjiangms/fix_server_for_limit_frames
David Fort [Thu, 3 Nov 2016 21:50:08 +0000 (22:50 +0100)]
Merge pull request #3578 from realjiangms/fix_server_for_limit_frames

Fix server side code to be aware of rereadEvent

7 years agoMerge pull request #3584 from awakecoding/master
Bernhard Miklautz [Thu, 3 Nov 2016 14:57:35 +0000 (15:57 +0100)]
Merge pull request #3584 from awakecoding/master

Fix issue #3422, ignore some dynamic virtual channel messages with invalid ids

7 years agodrdynvc: ignore some messages sent for invalid channel ids with MMR and Windows Serve...
Marc-André Moreau [Thu, 3 Nov 2016 14:12:48 +0000 (10:12 -0400)]
drdynvc: ignore some messages sent for invalid channel ids with MMR and Windows Server 2012 R2, fix issue #3422

7 years agoMerge pull request #3577 from akallabeth/error_message_channel_thread
Martin Fleisz [Wed, 2 Nov 2016 16:58:47 +0000 (17:58 +0100)]
Merge pull request #3577 from akallabeth/error_message_channel_thread

Error message channel thread

7 years agoScanline alignment for GFX cache.
Armin Novak [Mon, 31 Oct 2016 06:56:10 +0000 (07:56 +0100)]
Scanline alignment for GFX cache.

7 years agocleanup unnecessary code per comments
zihao.jiang [Sat, 29 Oct 2016 05:18:17 +0000 (13:18 +0800)]
cleanup unnecessary code per comments

7 years agokeeping the old callback and adding the new one at the end of the struct, so that...
zihao.jiang [Fri, 28 Oct 2016 16:28:10 +0000 (00:28 +0800)]
keeping the old callback and adding the new one at the end of the struct, so that it can be potentially binary compatible.

7 years agoFixed surface alignment.
Armin Novak [Thu, 27 Oct 2016 20:59:16 +0000 (22:59 +0200)]
Fixed surface alignment.

7 years agoFix server side code to be aware of rereadEvent
zihao.jiang [Thu, 27 Oct 2016 15:43:09 +0000 (23:43 +0800)]
Fix server side code to be aware of rereadEvent

7 years agoImproved error handling if channel is missing.
Armin Novak [Thu, 27 Oct 2016 12:41:05 +0000 (14:41 +0200)]
Improved error handling if channel is missing.

7 years agoAdded log messages for invalid function call.
Armin Novak [Thu, 27 Oct 2016 12:36:48 +0000 (14:36 +0200)]
Added log messages for invalid function call.

7 years agoMerge pull request #3560 from akallabeth/gfx_10_2
David Fort [Fri, 21 Oct 2016 07:29:51 +0000 (09:29 +0200)]
Merge pull request #3560 from akallabeth/gfx_10_2

Gfx 10.2 caps and deactivate GDI unsupported functions

7 years agoCode style fixes
Robert Corrigan [Thu, 20 Oct 2016 15:22:08 +0000 (11:22 -0400)]
Code style fixes

7 years agoMerge pull request #3364 from hardening/limit_frames
akallabeth [Thu, 20 Oct 2016 10:53:23 +0000 (12:53 +0200)]
Merge pull request #3364 from hardening/limit_frames

Limit the time passed in transport check loop

7 years agoAdded reference to capability specifications
Armin Novak [Thu, 20 Oct 2016 07:59:54 +0000 (09:59 +0200)]
Added reference to capability specifications

7 years agoRun password dialog as a modal sheet and set window title to server:port
Robert Corrigan [Fri, 14 Oct 2016 22:24:14 +0000 (18:24 -0400)]
Run password dialog as a modal sheet and set window title to server:port

7 years agoMerge pull request #3571 from akallabeth/clang_fixes
Martin Fleisz [Wed, 19 Oct 2016 13:45:17 +0000 (15:45 +0200)]
Merge pull request #3571 from akallabeth/clang_fixes

Clang fixes

7 years agoMerge pull request #3554 from akallabeth/color_refactor
Martin Fleisz [Wed, 19 Oct 2016 11:31:54 +0000 (13:31 +0200)]
Merge pull request #3554 from akallabeth/color_refactor

Replaced _VF formats with copy flags.

7 years agodirectly using FREERDP_PIXEL_FORMAT.
Armin Novak [Wed, 19 Oct 2016 10:41:43 +0000 (12:41 +0200)]
directly using FREERDP_PIXEL_FORMAT.

7 years agoFixed NULL dereferences.
Armin Novak [Wed, 19 Oct 2016 09:10:35 +0000 (11:10 +0200)]
Fixed NULL dereferences.

7 years agoFixed uninitialized return.
Armin Novak [Wed, 19 Oct 2016 09:06:47 +0000 (11:06 +0200)]
Fixed uninitialized return.

7 years agoFixed missing NULL checks.
Armin Novak [Wed, 19 Oct 2016 09:06:25 +0000 (11:06 +0200)]
Fixed missing NULL checks.

7 years agoFixed NULL pointer dereferences.
Armin Novak [Wed, 19 Oct 2016 09:05:12 +0000 (11:05 +0200)]
Fixed NULL pointer dereferences.

7 years agoMerge pull request #3570 from rjcorrig/tz201610
Martin Fleisz [Wed, 19 Oct 2016 08:26:01 +0000 (10:26 +0200)]
Merge pull request #3570 from rjcorrig/tz201610

winpr: Updates time zone data to October 2016

7 years agoUpdates time zone data to October 2016
Robert Corrigan [Tue, 18 Oct 2016 19:28:44 +0000 (15:28 -0400)]
Updates time zone data to October 2016

7 years agoMerge pull request #3568 from hardening/wayland_fixes
Martin Fleisz [Tue, 18 Oct 2016 15:06:41 +0000 (17:06 +0200)]
Merge pull request #3568 from hardening/wayland_fixes

Implement callbacks for version 5 of wl_pointer

7 years agoMerge pull request #3569 from akallabeth/gdi_resize_fix
Martin Fleisz [Tue, 18 Oct 2016 13:45:15 +0000 (15:45 +0200)]
Merge pull request #3569 from akallabeth/gdi_resize_fix

Fixed invalid arguments for gdi_resize_ex

7 years agoFixed invalid arguments for gdi_resize_ex
Armin Novak [Tue, 18 Oct 2016 13:16:58 +0000 (15:16 +0200)]
Fixed invalid arguments for gdi_resize_ex

7 years agoAdded a command line parameter to set the time passed in packet loop
David Fort [Mon, 17 Oct 2016 16:56:52 +0000 (18:56 +0200)]
Added a command line parameter to set the time passed in packet loop

7 years agoImplement callbacks for version 5 of wl_pointer
David Fort [Mon, 17 Oct 2016 09:27:10 +0000 (11:27 +0200)]
Implement callbacks for version 5 of wl_pointer

This should prevent crash with compositor that implement this version.

7 years agoMerge pull request #3567 from mfleisz/file_mode_fix
David Fort [Mon, 17 Oct 2016 13:34:17 +0000 (15:34 +0200)]
Merge pull request #3567 from mfleisz/file_mode_fix

crypto: Remove unneeded update (+) flag from file open mode

7 years agocrypto: Remove unneeded update (+) flag from file open mode
Martin Fleisz [Mon, 17 Oct 2016 12:49:26 +0000 (14:49 +0200)]
crypto: Remove unneeded update (+) flag from file open mode

7 years agoUpdated symbol visibility of GFX channel.
Armin Novak [Mon, 17 Oct 2016 07:05:54 +0000 (09:05 +0200)]
Updated symbol visibility of GFX channel.

7 years agoDeactivated unsupported operations.
Armin Novak [Sun, 16 Oct 2016 13:08:47 +0000 (15:08 +0200)]
Deactivated unsupported operations.

7 years agoGFX: support 10.2 stack.
Armin Novak [Sun, 16 Oct 2016 08:28:06 +0000 (10:28 +0200)]
GFX: support 10.2 stack.

7 years agoApplied astyle formatting
David Fort [Thu, 13 Oct 2016 20:02:25 +0000 (22:02 +0200)]
Applied astyle formatting

7 years agoUpdated the astyle formatting
David Fort [Thu, 13 Oct 2016 20:01:53 +0000 (22:01 +0200)]
Updated the astyle formatting

7 years agoRelease the reread event on transport_free
David Fort [Sun, 9 Oct 2016 20:36:04 +0000 (22:36 +0200)]
Release the reread event on transport_free

7 years agoTook in account comment remarks
David Fort [Sat, 8 Oct 2016 20:37:31 +0000 (22:37 +0200)]
Took in account comment remarks

7 years agotest-connect: use a random port instead of always 3389
David Fort [Wed, 6 Jul 2016 16:31:22 +0000 (18:31 +0200)]
test-connect: use a random port instead of always 3389

Doing so we have less chances to have a failure when we run 2 tests in parallel
on the same host (as sfrerdp-server listen on a socket).

7 years agosample-server: add a "local only" option to just listen on an UNIX socket
David Fort [Wed, 6 Jul 2016 16:30:12 +0000 (18:30 +0200)]
sample-server: add a "local only" option to just listen on an UNIX socket

This makes things nicer for tests that don't need internet access.

7 years agoLimit the time passed in transport check loop
David Fort [Tue, 3 May 2016 15:24:07 +0000 (17:24 +0200)]
Limit the time passed in transport check loop

This patch make it possible to limit the time that is passed when we call
XXX_check_fds functions. This should smooth the treatment between handling inputs
and handling incoming bitmap updates.
The default maximum time is set to 100 ms.

7 years agoAdjusted non X11 implementations.
Armin Novak [Fri, 14 Oct 2016 10:50:04 +0000 (12:50 +0200)]
Adjusted non X11 implementations.

7 years agoReplaced _VF formats with copy flags.
Armin Novak [Fri, 14 Oct 2016 08:01:02 +0000 (10:01 +0200)]
Replaced _VF formats with copy flags.

7 years agoMerge pull request #3497 from realjiangms/fix_gfx_win10
akallabeth [Fri, 14 Oct 2016 08:12:27 +0000 (10:12 +0200)]
Merge pull request #3497 from realjiangms/fix_gfx_win10

server/shadow: Fix black screen with win10 mstsc

7 years agoMerge pull request #3544 from akallabeth/multi_warn_fixes
Bernhard Miklautz [Fri, 14 Oct 2016 08:10:45 +0000 (10:10 +0200)]
Merge pull request #3544 from akallabeth/multi_warn_fixes

Fix multiple warnings

7 years agoAdapt makefile specific file paths
Bernhard Miklautz [Wed, 12 Oct 2016 09:24:29 +0000 (11:24 +0200)]
Adapt makefile specific file paths

Try to use relative file paths only when building a release (build types
Release and RelWithDebInfo) with the Unix Makefile generator.

Before it was tried to do this with all generators causing multiple
problems.

7 years agoRemoved unused variable.
Armin Novak [Tue, 11 Oct 2016 09:21:13 +0000 (11:21 +0200)]
Removed unused variable.

7 years agoFixed uninitialized variable.
Armin Novak [Tue, 11 Oct 2016 09:20:54 +0000 (11:20 +0200)]
Fixed uninitialized variable.

7 years agoFixed uninitialized variable.
Armin Novak [Tue, 11 Oct 2016 09:20:26 +0000 (11:20 +0200)]
Fixed uninitialized variable.

7 years agoFixed uninitialized variables.
Armin Novak [Tue, 11 Oct 2016 09:17:22 +0000 (11:17 +0200)]
Fixed uninitialized variables.

7 years agoFixed uninitialized arguments, WLog tag.
Armin Novak [Tue, 11 Oct 2016 09:14:49 +0000 (11:14 +0200)]
Fixed uninitialized arguments, WLog tag.

7 years agoProperly escaping __FILE__ replacement.
Armin Novak [Tue, 11 Oct 2016 09:13:54 +0000 (11:13 +0200)]
Properly escaping __FILE__ replacement.

7 years agoMerge pull request #3545 from akallabeth/legacy_rfx_fixes
Bernhard Miklautz [Thu, 13 Oct 2016 11:01:53 +0000 (13:01 +0200)]
Merge pull request #3545 from akallabeth/legacy_rfx_fixes

Fixed Windows 7 RFX issues.

7 years agoMerge pull request #3537 from akallabeth/gdi_speedup
Bernhard Miklautz [Thu, 13 Oct 2016 08:28:57 +0000 (10:28 +0200)]
Merge pull request #3537 from akallabeth/gdi_speedup

Inlined heavily used functions.

7 years agoReverted NSC format, decoded data is always BGRA!
Armin Novak [Tue, 11 Oct 2016 14:13:19 +0000 (16:13 +0200)]
Reverted NSC format, decoded data is always BGRA!

7 years agoMerge pull request #3547 from realjiangms/fix_after_color_conversion_nsc_server
Martin Fleisz [Wed, 12 Oct 2016 15:35:10 +0000 (17:35 +0200)]
Merge pull request #3547 from realjiangms/fix_after_color_conversion_nsc_server

Fix nsc server side after color conversion.

7 years agoColor format for surface bits unified.
Armin Novak [Wed, 12 Oct 2016 07:32:59 +0000 (09:32 +0200)]
Color format for surface bits unified.

7 years agoFixed offset and stride for X11 surface bits.
Armin Novak [Wed, 12 Oct 2016 07:32:05 +0000 (09:32 +0200)]
Fixed offset and stride for X11 surface bits.

7 years agoRespecting tile offsets.
Armin Novak [Wed, 12 Oct 2016 07:21:21 +0000 (09:21 +0200)]
Respecting tile offsets.

7 years agoFixed format flip and offsets for GDI.
Armin Novak [Tue, 11 Oct 2016 16:44:50 +0000 (18:44 +0200)]
Fixed format flip and offsets for GDI.

7 years agoFix nsc server side after color conversion.
zihao.jiang [Tue, 11 Oct 2016 15:31:12 +0000 (23:31 +0800)]
Fix nsc server side after color conversion.
We use new color format system and PIXEL_FORMAT_BGRX32 is the unified buffer color format. Add support for PIXEL_FORMAT_BGRX32 in nsc

7 years agoMerge pull request #3538 from akallabeth/mac_server_fix
Bernhard Miklautz [Tue, 11 Oct 2016 13:47:32 +0000 (15:47 +0200)]
Merge pull request #3538 from akallabeth/mac_server_fix

Mac shadow server regression fix

7 years agoOptimized ROP for GDI_SRCCOPY and GDI_DSTCOPY.
Armin Novak [Tue, 11 Oct 2016 11:10:54 +0000 (13:10 +0200)]
Optimized ROP for GDI_SRCCOPY and GDI_DSTCOPY.

7 years agoOptimized gdi_FillRect
Armin Novak [Tue, 11 Oct 2016 10:14:52 +0000 (12:14 +0200)]
Optimized gdi_FillRect

7 years agoInlined heavily used function.
Armin Novak [Mon, 10 Oct 2016 09:25:47 +0000 (11:25 +0200)]
Inlined heavily used function.

7 years agoInlined heavily used functions.
Armin Novak [Mon, 10 Oct 2016 09:09:06 +0000 (11:09 +0200)]
Inlined heavily used functions.

7 years agoFixed Windows 7 RFX issues.
Armin Novak [Tue, 11 Oct 2016 12:34:07 +0000 (14:34 +0200)]
Fixed Windows 7 RFX issues.

7 years agoMerge pull request #3470 from untoldone/master
akallabeth [Tue, 11 Oct 2016 11:15:13 +0000 (13:15 +0200)]
Merge pull request #3470 from untoldone/master

mac BUILD_SHARED_LIBS=ON fix (on master)

7 years agoMerge pull request #3531 from rjcorrig/macdialogfix
Bernhard Miklautz [Tue, 11 Oct 2016 07:44:53 +0000 (09:44 +0200)]
Merge pull request #3531 from rjcorrig/macdialogfix

client/Mac: Runs Mac password dialog on main UI thread

7 years agoMerge pull request #3536 from akallabeth/memory_leak_fixes
Martin Fleisz [Tue, 11 Oct 2016 07:29:49 +0000 (09:29 +0200)]
Merge pull request #3536 from akallabeth/memory_leak_fixes

Memory leak fixes

7 years agoMerge pull request #3540 from realjiangms/fix_after_color_conversion_gfx_h264
akallabeth [Tue, 11 Oct 2016 07:25:43 +0000 (09:25 +0200)]
Merge pull request #3540 from realjiangms/fix_after_color_conversion_gfx_h264

Regression fix: Fix gfx h264 server

7 years agoMerge pull request #3541 from realjiangms/fix_after_color_conversion_nsc
akallabeth [Tue, 11 Oct 2016 07:25:19 +0000 (09:25 +0200)]
Merge pull request #3541 from realjiangms/fix_after_color_conversion_nsc

Fix nsc client after after color conversion huge fix

7 years agoserver/shadow: Fix black screen with win10
zihao.jiang [Fri, 9 Sep 2016 07:31:21 +0000 (15:31 +0800)]
server/shadow: Fix black screen with win10
Request full screen update on RDPGFX_CAPS_ADVERTISE_PDU. Win10 client seems to clean the screen after gfx channel opened. If there happens to be no screen update from server, we will get black screen in mstsc client.

7 years agoFix nsc client after after color conversion huge fix
zihao.jiang [Mon, 10 Oct 2016 17:39:08 +0000 (01:39 +0800)]
Fix nsc client after after color conversion huge fix
nsc codec client doesn't work:
1. We should mark invalid region for software gdi
2. Checked the code before color conversion fix, the correct color format should be PIXEL_FORMAT_BGRX32_VF (corresponds to old PIXEL_FORMAT_XRGB32_VF)
3. For gdi:hw: xfc->bitmap_buffer is never used/initialized. However gdi->primary_buffer is always maintained. So use primary_buffer to hold the decoded bitmap data

7 years agoRegression fix: The usage of RDPGFX_SURFACE_COMMAND::format is changed after color...
zihao.jiang [Mon, 10 Oct 2016 16:23:48 +0000 (00:23 +0800)]
Regression fix: The usage of RDPGFX_SURFACE_COMMAND::format is changed after color conversion huge fix.
Fix server side rdpgfx code to match the change.

7 years agoMerge pull request #3533 from akallabeth/glyph_cache_disable
Bernhard Miklautz [Mon, 10 Oct 2016 14:04:09 +0000 (16:04 +0200)]
Merge pull request #3533 from akallabeth/glyph_cache_disable

Glyph cache disable

7 years agoFixed memory leak in certificate check.
Armin Novak [Mon, 10 Oct 2016 11:34:57 +0000 (13:34 +0200)]
Fixed memory leak in certificate check.