platform/upstream/freerdp.git
4 years agoMerge pull request #5899 from akallabeth/respect_abort_connect
Martin Fleisz [Thu, 20 Feb 2020 07:32:50 +0000 (08:32 +0100)]
Merge pull request #5899 from akallabeth/respect_abort_connect

End connection before user callbacks if aborted.

4 years agoEnd connection before user callbacks if aborted.
Armin Novak [Wed, 19 Feb 2020 15:44:42 +0000 (16:44 +0100)]
End connection before user callbacks if aborted.

If somewhere in freerdp_connect freerdp_abort_connect was called
the user callbacks Authenticate, GatewayAuthenticate and
Verify[Changed|X509]Certificate[Ex] must not be called.

4 years agoMerge pull request #5898 from akallabeth/timezone_update_20200219
Martin Fleisz [Wed, 19 Feb 2020 15:03:54 +0000 (16:03 +0100)]
Merge pull request #5898 from akallabeth/timezone_update_20200219

Updated timezones 2020-02-19

4 years agoUpdated timezones 2020-02-19
Armin Novak [Wed, 19 Feb 2020 14:24:16 +0000 (15:24 +0100)]
Updated timezones 2020-02-19

4 years agoMerge pull request #5896 from akallabeth/cast_warning_fixes
Martin Fleisz [Wed, 19 Feb 2020 09:54:02 +0000 (10:54 +0100)]
Merge pull request #5896 from akallabeth/cast_warning_fixes

Fixed #5895: cast warnings.

4 years agoMerge pull request #5897 from akallabeth/flatpak_update
Martin Fleisz [Wed, 19 Feb 2020 09:50:41 +0000 (10:50 +0100)]
Merge pull request #5897 from akallabeth/flatpak_update

Updated flatpak build manifest

4 years agoUpdated flatpak build manifest
Armin Novak [Wed, 19 Feb 2020 09:28:46 +0000 (10:28 +0100)]
Updated flatpak build manifest

* Use platform 19.08
* Remove shared-modules, no longer required (udev is now part of the
platform)
* Switch PCSC source to github to avoid rate limitations.

4 years agoFixed #5895: cast warnings.
Armin Novak [Wed, 19 Feb 2020 09:09:32 +0000 (10:09 +0100)]
Fixed #5895: cast warnings.

4 years agoFixed #5889: Only add descriptors wanted to select
Armin Novak [Tue, 18 Feb 2020 10:54:28 +0000 (11:54 +0100)]
Fixed #5889: Only add descriptors wanted to select

4 years agoFix markup
Sergey Bronnikov [Tue, 18 Feb 2020 11:52:42 +0000 (14:52 +0300)]
Fix markup

4 years agoMerge pull request #5890 from akallabeth/sample_client_install
Martin Fleisz [Tue, 18 Feb 2020 10:14:58 +0000 (11:14 +0100)]
Merge pull request #5890 from akallabeth/sample_client_install

Install sample client binary.

4 years agoFix channel linking for built in channels
Armin Novak [Tue, 3 Dec 2019 13:51:13 +0000 (14:51 +0100)]
Fix channel linking for built in channels

4 years agoAdded some callbacks to dynamic channel
Armin Novak [Tue, 3 Dec 2019 13:50:07 +0000 (14:50 +0100)]
Added some callbacks to dynamic channel

* Allow listener removal of channel during runtime
* Allow retrieval of channel name

4 years agoworking progressive Original Method DWT
Armin Novak [Mon, 16 Dec 2019 07:34:42 +0000 (08:34 +0100)]
working progressive Original Method DWT

Implemented decoding utilizing Original Method DWT
(See [MS-RDPEGFX] 3.2.8.1.2.2 Reduce-Extrapolate Method)

4 years agoRefactored progressive codec.
Armin Novak [Tue, 10 Dec 2019 15:19:20 +0000 (16:19 +0100)]
Refactored progressive codec.

4 years agoInstall sample client binary.
Armin Novak [Tue, 18 Feb 2020 10:02:43 +0000 (11:02 +0100)]
Install sample client binary.

4 years agoclient: remove unused variable
Sergey Bronnikov [Mon, 17 Feb 2020 11:22:56 +0000 (14:22 +0300)]
client: remove unused variable

4 years agoMerge pull request #5885 from llyzs/rdpsnd_overrun
Martin Fleisz [Sat, 15 Feb 2020 18:25:40 +0000 (19:25 +0100)]
Merge pull request #5885 from llyzs/rdpsnd_overrun

rdpsnd: implement buffer overrun detection.

4 years agordpsnd: implement buffer overrun detection.
Vic Lee [Fri, 14 Feb 2020 12:48:04 +0000 (20:48 +0800)]
rdpsnd: implement buffer overrun detection.

4 years agoMerge pull request #5881 from akallabeth/win_disable_console
David Fort [Thu, 13 Feb 2020 15:12:50 +0000 (16:12 +0100)]
Merge pull request #5881 from akallabeth/win_disable_console

Disable windows console attach.

4 years agoMerge pull request #5882 from akallabeth/sample_auth_only
Bernhard Miklautz [Thu, 13 Feb 2020 14:39:27 +0000 (15:39 +0100)]
Merge pull request #5882 from akallabeth/sample_auth_only

Added /auth-only option to sample client.

4 years agoAdded /auth-only option to samle client.
Armin Novak [Thu, 13 Feb 2020 07:26:21 +0000 (08:26 +0100)]
Added /auth-only option to samle client.

In #5814 the option to use a connection test was expressed.
Adding this option to the sample client allows doing that without
X11 or similar around.

4 years agoDisable windows console attach.
Armin Novak [Wed, 12 Feb 2020 14:45:19 +0000 (15:45 +0100)]
Disable windows console attach.

4 years agoMerge pull request #5857 from akallabeth/scanbuild_fixes
Martin Fleisz [Wed, 12 Feb 2020 09:16:54 +0000 (10:16 +0100)]
Merge pull request #5857 from akallabeth/scanbuild_fixes

Scanbuild fixes

4 years agoMerge pull request #5877 from akallabeth/urbdrc_export_symbol_fix
Martin Fleisz [Tue, 11 Feb 2020 11:58:10 +0000 (12:58 +0100)]
Merge pull request #5877 from akallabeth/urbdrc_export_symbol_fix

Urbdrc export symbol fix

4 years agoExporting URBDRC symbols used by helper library
Armin Novak [Tue, 11 Feb 2020 11:41:07 +0000 (12:41 +0100)]
Exporting URBDRC symbols used by helper library

When building the usb channel with different shared libraries some
necessary symbols were not exported.

4 years agoMerge pull request #5875 from akallabeth/smartcard_missing_null_check
David Fort [Mon, 10 Feb 2020 13:57:46 +0000 (14:57 +0100)]
Merge pull request #5875 from akallabeth/smartcard_missing_null_check

Fix #5847: Missing length check to trace smartcard buffers.

4 years agocore: server: fix a bad free in channel->queue cleanup
Kobi Mizrachi [Tue, 4 Feb 2020 12:51:47 +0000 (14:51 +0200)]
core: server: fix a bad free in channel->queue cleanup

4 years agoFix #5847: Missing length check to trace smartcard buffers.
Armin Novak [Mon, 10 Feb 2020 13:28:38 +0000 (14:28 +0100)]
Fix #5847: Missing length check to trace smartcard buffers.

4 years agoMerge pull request #5865 from akallabeth/write_cancelled_leak
Martin Fleisz [Mon, 10 Feb 2020 11:08:55 +0000 (12:08 +0100)]
Merge pull request #5865 from akallabeth/write_cancelled_leak

Fix #5852: handle CHANNEL_EVENT_WRITE_CANCELLED

4 years agoMerge pull request #5869 from llyzs/winmm_fixes
Martin Fleisz [Mon, 10 Feb 2020 09:40:55 +0000 (10:40 +0100)]
Merge pull request #5869 from llyzs/winmm_fixes

rdpsnd/winmm: fix some memory issues.

4 years agoserver: proxy: improve logs
Kobi Mizrachi [Tue, 28 Jan 2020 13:36:21 +0000 (15:36 +0200)]
server: proxy: improve logs

4 years agoMerge pull request #5830 from akallabeth/smartcard_updates
David Fort [Fri, 7 Feb 2020 13:11:00 +0000 (14:11 +0100)]
Merge pull request #5830 from akallabeth/smartcard_updates

Smartcard updates

4 years agordpsnd/winmm: fix some memory issues.
Vic Lee [Tue, 4 Feb 2020 09:56:07 +0000 (17:56 +0800)]
rdpsnd/winmm: fix some memory issues.

4 years agoFix #5852: handle CHANNEL_EVENT_WRITE_CANCELLED
Armin Novak [Wed, 29 Jan 2020 07:52:25 +0000 (08:52 +0100)]
Fix #5852: handle CHANNEL_EVENT_WRITE_CANCELLED

When channels are cleaned up OpenHandle is most of the time
already 0. Ignore the argument checks for
CHANNEL_EVENT_WRITE_CANCELLED and CHANNEL_EVENT_WRITE_COMPLETE
only check where actually required (CHANNEL_EVENT_DATA_RECEIVED)

4 years agoFreeRDP_WTSVirtualChannelOpen unify channel new/free
Armin Novak [Thu, 16 Jan 2020 10:31:13 +0000 (11:31 +0100)]
FreeRDP_WTSVirtualChannelOpen unify channel new/free

4 years agoserver: make sure all messages in channel->queue are freed when queue is freed
Kobi Mizrachi [Thu, 16 Jan 2020 09:25:43 +0000 (11:25 +0200)]
server: make sure all messages in channel->queue are freed when queue is freed

4 years agoserver: proxy: show indicative log on bind failure.
Kobi Mizrachi [Mon, 27 Jan 2020 06:23:28 +0000 (08:23 +0200)]
server: proxy: show indicative log on bind failure.

4 years agoAdded unified NDR pointer reading.
Armin Novak [Fri, 24 Jan 2020 12:41:27 +0000 (13:41 +0100)]
Added unified NDR pointer reading.

4 years agoFixed missing length checks for smartcard IRP read.
Armin Novak [Fri, 24 Jan 2020 12:23:40 +0000 (13:23 +0100)]
Fixed missing length checks for smartcard IRP read.

4 years agoMerge pull request #5859 from mfleisz/multi_trans_fix
Martin Fleisz [Thu, 23 Jan 2020 14:39:28 +0000 (15:39 +0100)]
Merge pull request #5859 from mfleisz/multi_trans_fix

core: Always send CS_MULTITRANSPORT PDU to server

4 years agocore: Always send CS_MULTITRANSPORT PDU to server
Martin Fleisz [Thu, 23 Jan 2020 14:16:14 +0000 (15:16 +0100)]
core: Always send CS_MULTITRANSPORT PDU to server

This PDU is required by Microsoft servers in order for bandwidth
management to work correctly. Even if we do not support multi-transport
for now we should just send a PDU with flags set to 0 to enable correct
handing of bandwidth measurement PDUs.

4 years agoFixed rdpei unused function warning.
Armin Novak [Thu, 23 Jan 2020 09:50:37 +0000 (10:50 +0100)]
Fixed rdpei unused function warning.

4 years agoFixed smartcard type mismatches.
Armin Novak [Thu, 23 Jan 2020 09:39:43 +0000 (10:39 +0100)]
Fixed smartcard type mismatches.

4 years agoFixed type of index variables.
Armin Novak [Thu, 23 Jan 2020 08:21:22 +0000 (09:21 +0100)]
Fixed type of index variables.

4 years agoFixed type of index variable.
Armin Novak [Thu, 23 Jan 2020 08:21:06 +0000 (09:21 +0100)]
Fixed type of index variable.

4 years agoFixed unused variable warning.
Armin Novak [Thu, 23 Jan 2020 08:20:33 +0000 (09:20 +0100)]
Fixed unused variable warning.

4 years agoFixed copy of opaque data
Armin Novak [Thu, 23 Jan 2020 08:20:08 +0000 (09:20 +0100)]
Fixed copy of opaque data

do not use strcncpy for opaque data.

4 years agoFixed unused argument warnings.
Armin Novak [Thu, 23 Jan 2020 08:19:48 +0000 (09:19 +0100)]
Fixed unused argument warnings.

4 years agoAdded NULL checks to silence clang-scanbuild.
Armin Novak [Thu, 23 Jan 2020 08:09:35 +0000 (09:09 +0100)]
Added NULL checks to silence clang-scanbuild.

4 years agoFixed NULL dereference.
Armin Novak [Thu, 23 Jan 2020 08:06:19 +0000 (09:06 +0100)]
Fixed NULL dereference.

4 years agoFixed NULL dereference.
Armin Novak [Thu, 23 Jan 2020 07:55:47 +0000 (08:55 +0100)]
Fixed NULL dereference.

4 years agoFixed NULL dereference.
Armin Novak [Thu, 23 Jan 2020 07:53:40 +0000 (08:53 +0100)]
Fixed NULL dereference.

4 years agoUnified smartcart multistring conversion.
Armin Novak [Thu, 23 Jan 2020 09:07:54 +0000 (10:07 +0100)]
Unified smartcart multistring conversion.

4 years agoFixed type mismatches on allocation.
Armin Novak [Thu, 23 Jan 2020 08:48:20 +0000 (09:48 +0100)]
Fixed type mismatches on allocation.

4 years agoFixed smartcard_SetAttrib_Decode call type
Armin Novak [Thu, 23 Jan 2020 08:32:34 +0000 (09:32 +0100)]
Fixed smartcard_SetAttrib_Decode call type

4 years agoMerge pull request #5856 from akallabeth/neon_ycocg
Martin Fleisz [Thu, 23 Jan 2020 07:30:11 +0000 (08:30 +0100)]
Merge pull request #5856 from akallabeth/neon_ycocg

Fixed #5855: YCoCg to RGB conversion color order

4 years agoFixed #5855: YCoCg to RGB conversion color order
Armin Novak [Wed, 22 Jan 2020 16:28:22 +0000 (17:28 +0100)]
Fixed #5855: YCoCg to RGB conversion color order

4 years agocore: Fix and extend populate rdp file from settings
Martin Fleisz [Wed, 22 Jan 2020 12:13:51 +0000 (13:13 +0100)]
core: Fix and extend populate rdp file from settings

This PR contains the following changes:
- Get rid of unused SettingsModified array (kept in the settings struct for ABI
compatibility)
- Fix and extend freerdp_client_populate_rdp_file_form_settings (wrote <null> strings to the rdp file, missed a lot of settings)
- Set KeyboardHook default value to 2 (hook in fullscreen) just as mstsc
does

4 years agoserver: proxy: specify which modules to load in config
Kobi Mizrachi [Tue, 21 Jan 2020 12:56:49 +0000 (14:56 +0200)]
server: proxy: specify which modules to load in config

4 years agocmdline: export CommandLineParseCommaSeparatedValues
Kobi Mizrachi [Tue, 21 Jan 2020 12:55:55 +0000 (14:55 +0200)]
cmdline: export CommandLineParseCommaSeparatedValues

4 years agoMerge pull request #5851 from akallabeth/multi_disconnect_crash_fix
Martin Fleisz [Tue, 21 Jan 2020 14:19:10 +0000 (15:19 +0100)]
Merge pull request #5851 from akallabeth/multi_disconnect_crash_fix

Fixed missing NULL set of pointer after free

4 years agoFixed missing NULL set of pointer after free
Armin Novak [Tue, 21 Jan 2020 13:40:33 +0000 (14:40 +0100)]
Fixed missing NULL set of pointer after free

Due to this double free was possible if disconnect_and_clear was
called multiple times.

4 years agoserver: proxy: add an indicative log listener->Open fails. fixes #5850
Kobi Mizrachi [Tue, 21 Jan 2020 09:02:12 +0000 (11:02 +0200)]
server: proxy: add an indicative log listener->Open fails. fixes #5850

4 years agoserver: proxy: pf_client.c: remove unused includes
Kobi Mizrachi [Mon, 20 Jan 2020 10:27:01 +0000 (12:27 +0200)]
server: proxy: pf_client.c: remove unused includes

4 years agoserver: proxy: disconnect all active sessions on shutdown
Kobi Mizrachi [Sun, 19 Jan 2020 09:51:34 +0000 (11:51 +0200)]
server: proxy: disconnect all active sessions on shutdown

4 years agoRevert "core: rdp: reset rdp->nla in rdp_reset"
Kobi Mizrachi [Sun, 19 Jan 2020 09:03:27 +0000 (11:03 +0200)]
Revert "core: rdp: reset rdp->nla in rdp_reset"

This reverts commit 205b0fba7fb92b4db7bb0fbdac7550564e48cd0e.

4 years agoserver: proxy: modules_init: create modules dir if not exists
Kobi Mizrachi [Tue, 21 Jan 2020 07:15:46 +0000 (09:15 +0200)]
server: proxy: modules_init: create modules dir if not exists

4 years agoserver: proxy: update config.ini
Kobi Mizrachi [Tue, 21 Jan 2020 07:15:11 +0000 (09:15 +0200)]
server: proxy: update config.ini

4 years agordpsnd: Add synchronization to winmm backend
Martin Fleisz [Fri, 17 Jan 2020 12:02:31 +0000 (13:02 +0100)]
rdpsnd: Add synchronization to winmm backend

4 years agoMerge pull request #5844 from akallabeth/gfx_fix
Martin Fleisz [Thu, 16 Jan 2020 14:46:17 +0000 (15:46 +0100)]
Merge pull request #5844 from akallabeth/gfx_fix

Gfx fix disconnect reorder

4 years agoFixed #5843 wrong header length for pdu
Armin Novak [Thu, 16 Jan 2020 14:30:33 +0000 (15:30 +0100)]
Fixed #5843 wrong header length for pdu

@boom1 reported encomsp_send_change_participant_control_level_pdu
fails due to wrong length.

4 years agoFixed accidental reorder of surface delete and disconnect
Armin Novak [Thu, 16 Jan 2020 14:23:35 +0000 (15:23 +0100)]
Fixed accidental reorder of surface delete and disconnect

4 years agordpsnd: Fix possible crash and deadlock in winmm backend
Martin Fleisz [Wed, 15 Jan 2020 12:04:25 +0000 (13:04 +0100)]
rdpsnd: Fix possible crash and deadlock in winmm backend

4 years agoaudin: Fix possible crash in winmm backend
Martin Fleisz [Wed, 15 Jan 2020 10:23:59 +0000 (11:23 +0100)]
audin: Fix possible crash in winmm backend

4 years agoMerge pull request #5841 from akallabeth/vaapi_fixes
Martin Fleisz [Thu, 16 Jan 2020 09:17:10 +0000 (10:17 +0100)]
Merge pull request #5841 from akallabeth/vaapi_fixes

Vaapi fixes

4 years agoMerge pull request #5836 from kubistika/proxy/fix_rail_and_update_issues
Martin Fleisz [Thu, 16 Jan 2020 09:13:26 +0000 (10:13 +0100)]
Merge pull request #5836 from kubistika/proxy/fix_rail_and_update_issues

fixes: rail and update issues

4 years agoMerge pull request #5783 from akallabeth/gfx_mask_arg
Martin Fleisz [Thu, 16 Jan 2020 09:02:15 +0000 (10:02 +0100)]
Merge pull request #5783 from akallabeth/gfx_mask_arg

Added /gfx and /gfx-h264 option mask=<value>

4 years agoFixed #5839: Use correct pointer to cast.
Armin Novak [Thu, 16 Jan 2020 08:53:57 +0000 (09:53 +0100)]
Fixed #5839: Use correct pointer to cast.

4 years agoAdd CMake config option for VAAPI
Armin Novak [Thu, 16 Jan 2020 08:53:39 +0000 (09:53 +0100)]
Add CMake config option for VAAPI

4 years agocore: rdp: reset rdp->nla in rdp_reset
Kobi Mizrachi [Thu, 16 Jan 2020 07:07:50 +0000 (09:07 +0200)]
core: rdp: reset rdp->nla in rdp_reset

4 years agoclient/X11: Avoid crash in XGetDeviceButtonMapping()
Alexander Volkov [Wed, 15 Jan 2020 11:32:08 +0000 (14:32 +0300)]
client/X11: Avoid crash in XGetDeviceButtonMapping()

XOpenDevice() may fail and return NULL, so try to find the first
pointer device that can be opened, and ensure that ptr_dev argument
is not NULL before passing it to XGetDeviceButtonMapping().

4 years agoMerge pull request #5750 from akallabeth/encomsp_auto
David Fort [Wed, 15 Jan 2020 12:56:00 +0000 (13:56 +0100)]
Merge pull request #5750 from akallabeth/encomsp_auto

Encomsp automatic input control && cleanups

4 years agordpsnd: server: fix leak in rdpsnd_server_context_free
Kobi Mizrachi [Wed, 15 Jan 2020 11:51:05 +0000 (13:51 +0200)]
rdpsnd: server: fix leak in rdpsnd_server_context_free

4 years agoserver: update: made functions static
Kobi Mizrachi [Wed, 15 Jan 2020 10:11:24 +0000 (12:11 +0200)]
server: update: made functions static

4 years agoupdate: update_send_new_or_existing_window: fix signed/unsigned according to spec
Kobi Mizrachi [Wed, 15 Jan 2020 09:20:54 +0000 (11:20 +0200)]
update: update_send_new_or_existing_window: fix signed/unsigned according to spec

4 years agoserver: update: call update_check_flush whenever using the reused update buffer
Kobi Mizrachi [Wed, 15 Jan 2020 09:18:45 +0000 (11:18 +0200)]
server: update: call update_check_flush whenever using the reused update buffer

4 years agoMerge pull request #5831 from akallabeth/drdynvc_error_tolerance
David Fort [Wed, 15 Jan 2020 09:49:53 +0000 (10:49 +0100)]
Merge pull request #5831 from akallabeth/drdynvc_error_tolerance

Ignore dynamic virtual channel errors

4 years agoMerge pull request #5835 from akallabeth/planar_chroma_subsample
David Fort [Wed, 15 Jan 2020 09:49:09 +0000 (10:49 +0100)]
Merge pull request #5835 from akallabeth/planar_chroma_subsample

Implemented chroma subsampling for planar non RLE

4 years agoserver: proxy: fix race condition when between client thread and server update thread
Kobi Mizrachi [Wed, 15 Jan 2020 09:15:06 +0000 (11:15 +0200)]
server: proxy: fix race condition when between client thread and server update thread

4 years agoFixed remaining issues with chroma subsampling.
Armin Novak [Tue, 14 Jan 2020 16:46:13 +0000 (17:46 +0100)]
Fixed remaining issues with chroma subsampling.

4 years agoFixed inverted color formats in YCoCgRToRGB_8u_AC4R
Armin Novak [Tue, 14 Jan 2020 16:45:20 +0000 (17:45 +0100)]
Fixed inverted color formats in YCoCgRToRGB_8u_AC4R

4 years agoFixed planar size checks.
Armin Novak [Tue, 14 Jan 2020 14:14:40 +0000 (15:14 +0100)]
Fixed planar size checks.

4 years agoEnabled YCoCg for planar.
Armin Novak [Tue, 14 Jan 2020 13:23:43 +0000 (14:23 +0100)]
Enabled YCoCg for planar.

4 years agoAdded planar RLE chroma subsampling.
Armin Novak [Tue, 14 Jan 2020 12:22:45 +0000 (13:22 +0100)]
Added planar RLE chroma subsampling.

4 years agoImplemented chroma subsampling for planar non RLE
Armin Novak [Tue, 14 Jan 2020 11:17:12 +0000 (12:17 +0100)]
Implemented chroma subsampling for planar non RLE

Planar frames that are not RLE encoded can now be decoded if
chroma subsampling is enabled. Partly fixes #5822

4 years agoserver: proxy: fix pf_modules_init
Kobi Mizrachi [Tue, 14 Jan 2020 09:02:04 +0000 (11:02 +0200)]
server: proxy: fix pf_modules_init

4 years agoMerge pull request #5796 from akallabeth/rdp_10_7_large_pointers
David Fort [Tue, 14 Jan 2020 09:17:13 +0000 (10:17 +0100)]
Merge pull request #5796 from akallabeth/rdp_10_7_large_pointers

Added RDP 10.7 large pointer support

4 years agoserver: proxy: do not compile modules by default
Kobi Mizrachi [Mon, 13 Jan 2020 10:30:09 +0000 (12:30 +0200)]
server: proxy: do not compile modules by default

4 years agoserver: proxy: shutdown gracefully
Kobi Mizrachi [Tue, 31 Dec 2019 13:52:33 +0000 (15:52 +0200)]
server: proxy: shutdown gracefully