platform/upstream/freerdp.git
5 years agobugfix: segfault when calling an event which is not implemented by filter
kubistika [Sun, 12 May 2019 11:02:50 +0000 (14:02 +0300)]
bugfix: segfault when calling an event which is not implemented by filter

5 years agoserver/proxy: Use new parse_string_array_from_str implementation (using ArrayList)
kubistika [Sun, 12 May 2019 17:51:54 +0000 (20:51 +0300)]
server/proxy: Use new parse_string_array_from_str implementation (using ArrayList)

5 years agoserver/proxy: Refactor pf_server.c
kubistika [Sun, 12 May 2019 17:50:26 +0000 (20:50 +0300)]
server/proxy: Refactor pf_server.c

5 years agoserver/proxy: Refactor pf_server_parse_target_from_routing_token
kubistika [Sun, 12 May 2019 17:49:37 +0000 (20:49 +0300)]
server/proxy: Refactor pf_server_parse_target_from_routing_token

5 years agoserver/proxy: Add external filters support
kubistika [Sun, 12 May 2019 17:48:51 +0000 (20:48 +0300)]
server/proxy: Add external filters support

5 years agoMerge pull request #4350 from akallabeth/format_code_patch
David Fort [Thu, 23 May 2019 14:11:54 +0000 (16:11 +0200)]
Merge pull request #4350 from akallabeth/format_code_patch

New code formatting rules

5 years agoAdded a CMake option for the clangformat target support.
Armin Novak [Thu, 23 May 2019 12:14:31 +0000 (14:14 +0200)]
Added a CMake option for the clangformat target support.

5 years agorail: added verbose logs (#5402)
David Fort [Thu, 23 May 2019 10:15:26 +0000 (12:15 +0200)]
rail: added verbose logs (#5402)

* rail: added verbose logs

* rail: fix buffer initialisation in debug message

5 years agoMerge pull request #5403 from akallabeth/keyboard_event_flags
David Fort [Thu, 23 May 2019 10:05:58 +0000 (12:05 +0200)]
Merge pull request #5403 from akallabeth/keyboard_event_flags

Fixed fastpath/slowpatth pause event.

5 years agoMerge pull request #5404 from m4ntis/feat/proxy-errors
David Fort [Thu, 23 May 2019 07:43:47 +0000 (09:43 +0200)]
Merge pull request #5404 from m4ntis/feat/proxy-errors

Proxy: Redirect errors back to client

5 years agoMerge pull request #5413 from akallabeth/rail_wdir
Martin Fleisz [Wed, 22 May 2019 14:54:06 +0000 (16:54 +0200)]
Merge pull request #5413 from akallabeth/rail_wdir

Added rail workdir parameter

5 years agoAdded rail workdir parameter
Armin Novak [Wed, 22 May 2019 14:36:40 +0000 (16:36 +0200)]
Added rail workdir parameter

5 years agoserver/proxy: Proxy errors back to client
kubistika [Sun, 19 May 2019 11:35:06 +0000 (14:35 +0300)]
server/proxy: Proxy errors back to client

5 years agoExport Error Info PDU.
kubistika [Sun, 19 May 2019 11:34:00 +0000 (14:34 +0300)]
Export Error Info PDU.

5 years agoFirst version of an RDP proxy (#5372)
Mati Shabtay [Fri, 17 May 2019 12:32:54 +0000 (15:32 +0300)]
First version of an RDP proxy (#5372)

* server: Add proxy dir with barebones server

* sever/proxy: Remove licensing

* server/proxy: Add client files

* server/proxy: rm binary

* server/proxy: Formatting

* server/proxy: Fixed includes and added basic client creation functionality

* server/proxy: Remove licensing and fix ifndef

* proxy/server: Fix cmake indentation

* server/proxy: Fix licensing

* server/proxy: Forward connection on peer_post_connect

* server/proxy: Fix function signature

* server/proxy: Changed function signature of proxy_client_start

* server/proxy: Now peer_post_connect calls proxy_client_start in a new thread

* pfreerdp.c: Clean up useless comments and logs

* server/proxy: Fix license

* server/proxy: Remove all non-connection related data from proxy_context

* server/proxy: Move Log Tag definition to pf_log.h

* server/proxy: Move context definition to pf_context

* server/proxy: Delete pfreerdp.h

* pfreerdp.c: Move context callbacks to pf_context.c

* server/proxy: Update CMakeLists.txt

* pf_channels: Use new proxy context API

* pf_client: Move context to pf_context

* pf_client.c: Remove unnessecary event handling

* server/proxy: Formatting

* proxy/server: Move server logic to pf_server.c

* server/proxy: Handle client disconnection

* Merge stash

* pf_server.c: Open GFX Connection to client

* server: CMakeLists: build proxy along with other servers

* server: proxy: get target server from rdpNego->RoutingToken

Iv'e omitted a check from  which im not sure is right. Should check in docs

* server/proxy: Handle remote server -> client disconnection

* server/proxy: Move common function  to pf_common.c

* server/proxy: Move common function  to pf_common.c

* rdpgfx.h: Add reference to freerdp.h for rdpContext

* pf_channels: Pipe GFX on channel connection

* server/proxy: Add pf_rdpgfx for proxy gfx callbacks

* pf_client: Declare dynvc and gfx capabilities on connection

* server/proxy: Add graphics callbacks

* server/proxy: Add graphics callbacks

* pf_server: Listen to channel events

* Pass user settings to server

* pf_server: Proxy mouse events

* fixup! server/proxy: Add graphics callbacks

* pf_client: Fix setting initialization

* Merge feat/proxy-gfx to feat/proxy

* pf_server: Fix double freed credentials

* server/proxy: Remove unnecessary call to freerdp_client_settings_parse_command_line

* server/proxy: Refactor re-activation code

* server/proxy: Run format scripts

* server/proxy: Fix segfault when post_disconnect return FALSE

* server/proxy: Refactor proxy_settings_mirror

* server/proxy: Redirect credentials

* server/proxy: move proxy_settings_mirror to pf_common.c

* server/proxy: Redirect desktop_resize event

* pf_client: Remove interactive CLI auth methods

* fixup! server/proxy: Redirect credentials

* server/proxy: Rename proxy_mirror_settings to pf_common_copy_settings

* pf_server.c: Fixed non-freed context

When the disconnection is forced by the target server, the function
`pf_server_handle_client_disconnection` isn't called. Therefore, the
context of the connection between the proxy to tagrget isn't freed.

* fixup! pf_server.c: Fixed non-freed context

* pf_client: Prefix all client methods with pf_client

* pf_context: Add init client to proxy context method

* pf_server: Confirm all GFX caps regardless of settings

* pf_server: Prefix all methods with pf_server

* pf_server: Move variable decleration to start of method

* pf_server: Fix client setting

* pf_server: Fix GFX init method

* pf_server: Move variable decleration to start of methods

* server/proxy: Formatting

* Merge feat/proxy

* pf_server: Proxy synchronize event

* pf_server: Proxy refresh rect update events

* pf_server: Proxy suppress output messages

* server/proxy: Fix licensing

* server/proxy: Move client input callbacks to pf_input

* server/proxy: Move client update callbacks to pf_update

* server/proxy: Fix non-terminated target host string

* Feat/proxy config (#2)

* server/proxy: Add config loading support

* server/proxy: Add config file

* server/proxy: Format code

* server/proxy: Code refactor, rename update_register_callbacks and input_register_callbacks

* server/proxy: Update config file

* server/proxy: Remove config.ini from root directory

* Remove comment from config file

* server/proxy: Fix leak in pf_server_load_config

* server/proxy: Add rdpServerProxy struct and embed it in proxyContext

* server/proxy: Load configuration and pass it inside every proxyContext instance

* server/proxy: Move rdpProxyServer to proxy.h

* server/proxy: Use configuration while proxying input events

* server/proxy: Update CMakeLists

* server/proxy: Refactor pf_input.c

* server/proxy: Add AllowedChannels, DeniedChannels in configuration

* server/proxy: Remove unnecessary variable from parse_channels_from_str

* server/proxy: Update config file

* server/proxy: config: Rename  to

* server/proxy: config: Add mode - blacklist/whitelist

* server/proxy: Refactor, fix NULL deref

* server/proxy: Add license to proxy.h

* server/proxy: Fix newline in pf_config.c

* server/proxy: config: Rename Mode to WhitelistMode

* Add target in config. Add checks for configuration validity (#3)

* Add target in config. Add checks for configuration validity

* Update config file

* libfreerdp: nego: revert commented out check of routingToken length

* pf_server: Fix target host info from RoutingToken

* pf_server: Remove hardcoded lenght of routing token prefix

* Feat/refactor context (#8)

* Refactor main structs

* Update CMakeLists.txt

* pf_server.c: Free pdata at the end of the connection

* Run format scripts

* Rename tf to pc

* Fix licenses

* pf_server: Refactor names of structs and functions

* proxy: gfx: sync caps (#4)

* proxy: gfx: sync caps

* proxy: gfx: sync caps, hook gfx client's OnClose() call and close server resources

* fixup! Feat/refactor context (#8)

* fixup! fixup! Feat/refactor context (#8)

* rdpgfx/client: Fix rdpgfx_recv_caps_confirm_pdu caps set length parsing

* Run format scripts

* proxy config.ini: Change default port to 3389

* pf_rdpgfx: Limit caps version to freerdp's supported versions

* Gfx OnOpen() wait for dynvc ready (#10)

* proxy/gfx: Wait for dynvc ready state before open

* pf_channels: Initialize pc->gfx

* pf_rdpgfx: Add log and fix comments

* rdpgfx: Fix GFX v10.6 PDUs parsing and naming according to the spec

* pf_rdpgfx: Proxy rdpgfx v10.6 PDUs

* gfx client: Publish FrameAck sending and add auto ack flag

* proxy/gfx: Forward frame ack messages

* pf_context: Forward domain on connection

* pf_rdpgfx: Change max supported caps to 10.6

* proxy: Update config

* server/proxy: Use configuration in pf_server_handle_client

* rdpgfx/client: Fix size of surface_to_scaled_window, surface_to_window

* pf_rdpgfx: Fix formatting

* pf_server.c: Fix comments

* Move pf_server_rdpgfx_init to pf_rdpgfx

* server/proxy/CMakeLists.txt: Fix formatting

* pf_client.c: Add comment in proxy_server_reactivate

* Fixed const correctness of gfx function pointer

Signed-off-by: Mati Shabtay <matishabtay@gmail.com>
* server: proxy: update copyright

* server: proxy: wrap rdpNego and add a getter for routing token

* Refactor routing token getter (#14)

* Refactor routing token getter

* pf_server_parse_target_from_routing_token change routing_token_length to be DWORD

* libfreerdp/core/nego.c: Run format script

* pf_server: Run format script

* server/proxy: Fix os msbuild tests

* pf_channels.c: Remove unused channels

* pf_client: Remove unused callbacks

* proxy: Remove encomsp callbacks from proxy's client

* client/rdpgfx_main.c: Fix msbuild test

* pf_config.c: Use StrSep instead of strsep for Windows builds

* Removed nego struct from direct access.

Signed-off-by: Mati Shabtay <matishabtay@gmail.com>
* proxy: Rename binary to freerdp-proxy

* rdpgfx_main.c: Revert unwanted double change to send_supported_caps

* Cleaned up proxy server code.

* All internal functions static
* Added simple command line argument to supply a config file
* Silence compiler warnings

Signed-off-by: kubistika <kmizrachi18@gmail.com>
5 years agoFixed fastpath/slowpatth pause event.
Armin Novak [Thu, 16 May 2019 13:14:16 +0000 (15:14 +0200)]
Fixed fastpath/slowpatth pause event.

5 years agoAdded clang format script.
Armin Novak [Wed, 10 Jan 2018 09:54:24 +0000 (10:54 +0100)]
Added clang format script.

new code formatting rules are now enforced by this script.

5 years agoMerge pull request #5398 from akallabeth/rail_client_sysparam_fix
Martin Fleisz [Wed, 15 May 2019 13:41:08 +0000 (15:41 +0200)]
Merge pull request #5398 from akallabeth/rail_client_sysparam_fix

Fixed mapping of new client sysparam values.

5 years agoFixed mapping of new client sysparam values.
Armin Novak [Wed, 15 May 2019 13:25:04 +0000 (15:25 +0200)]
Fixed mapping of new client sysparam values.

5 years agoMerge pull request #5394 from akallabeth/settings_update
Martin Fleisz [Thu, 9 May 2019 12:49:21 +0000 (14:49 +0200)]
Merge pull request #5394 from akallabeth/settings_update

Updated settings getter/setter for RemoteApplicationSupportMask

5 years agoUpdated settings getter/setter for RemoteApplicationSupportMask
Armin Novak [Thu, 9 May 2019 12:24:58 +0000 (14:24 +0200)]
Updated settings getter/setter for RemoteApplicationSupportMask

5 years agoMerge pull request #5314 from akallabeth/setting_getter_setter_generator
Martin Fleisz [Thu, 9 May 2019 12:23:31 +0000 (14:23 +0200)]
Merge pull request #5314 from akallabeth/setting_getter_setter_generator

Added python generator for freerdp_[g|s]et_param*

5 years agoFixed remaining getter/setter return checks.
Armin Novak [Thu, 9 May 2019 11:50:39 +0000 (13:50 +0200)]
Fixed remaining getter/setter return checks.

5 years agoMerge pull request #5393 from akallabeth/rails_memleak_fix
Martin Fleisz [Thu, 9 May 2019 11:45:37 +0000 (13:45 +0200)]
Merge pull request #5393 from akallabeth/rails_memleak_fix

Fixed window order cleanup for NOTIFY_ICON_STATE_ORDER

5 years agoFixed window order cleanup for NOTIFY_ICON_STATE_ORDER
Armin Novak [Thu, 9 May 2019 11:23:25 +0000 (13:23 +0200)]
Fixed window order cleanup for NOTIFY_ICON_STATE_ORDER

5 years agoMerge pull request #5327 from akallabeth/sign_compare_fixes_v3
Martin Fleisz [Thu, 9 May 2019 11:21:36 +0000 (13:21 +0200)]
Merge pull request #5327 from akallabeth/sign_compare_fixes_v3

Leak and warning fixes for 2.0

5 years agoMerge pull request #5392 from akallabeth/gfx_avc_flag_fixes
Martin Fleisz [Thu, 9 May 2019 11:16:08 +0000 (13:16 +0200)]
Merge pull request #5392 from akallabeth/gfx_avc_flag_fixes

Fixed GFX flags and CapsConfirm return checks

5 years agoMerge pull request #5386 from akallabeth/rails_spec_update
Martin Fleisz [Thu, 9 May 2019 10:49:55 +0000 (12:49 +0200)]
Merge pull request #5386 from akallabeth/rails_spec_update

Rails spec update

5 years agoFixed GFX flags and CapsConfirm return checks
Armin Novak [Thu, 9 May 2019 10:46:10 +0000 (12:46 +0200)]
Fixed GFX flags and CapsConfirm return checks

5 years agoFixed rails set_caretwidth
Armin Novak [Thu, 9 May 2019 10:28:27 +0000 (12:28 +0200)]
Fixed rails set_caretwidth

5 years agoMerge pull request #5388 from akallabeth/nightly_cairo
David Fort [Thu, 9 May 2019 08:33:18 +0000 (10:33 +0200)]
Merge pull request #5388 from akallabeth/nightly_cairo

Nightly: activate cairo software scaling

5 years agoEnable cairo support for software scaling.
Armin Novak [Wed, 8 May 2019 15:54:27 +0000 (17:54 +0200)]
Enable cairo support for software scaling.

5 years agoUpdated RAILS implementation
Armin Novak [Wed, 8 May 2019 13:36:20 +0000 (15:36 +0200)]
Updated RAILS implementation

* Implement new messages and callbacks
* Announce most recent channel features
* Added settings to configure flags to announce

5 years agoMerge pull request #5387 from mfleisz/image_from_icon
akallabeth [Wed, 8 May 2019 15:19:27 +0000 (17:19 +0200)]
Merge pull request #5387 from mfleisz/image_from_icon

core: Move image conversion of icon data into the library

5 years agocore: Move image conversion for icon data into the library
Martin Fleisz [Wed, 8 May 2019 13:03:06 +0000 (15:03 +0200)]
core: Move image conversion for icon data into the library

5 years agoFixed warnings and cleaned up gfx related xfreerdp code.
Armin Novak [Wed, 8 May 2019 13:35:07 +0000 (15:35 +0200)]
Fixed warnings and cleaned up gfx related xfreerdp code.

5 years agoFor smartcard trace functions use const arguments
Armin Novak [Fri, 5 Apr 2019 11:27:57 +0000 (13:27 +0200)]
For smartcard trace functions use const arguments

5 years agoFixed uninitialized value
Armin Novak [Fri, 5 Apr 2019 11:17:28 +0000 (13:17 +0200)]
Fixed uninitialized value

5 years agoFixed memory leak
Armin Novak [Fri, 5 Apr 2019 11:17:24 +0000 (13:17 +0200)]
Fixed memory leak

5 years agoFixed memory leak
Armin Novak [Fri, 5 Apr 2019 11:02:08 +0000 (13:02 +0200)]
Fixed memory leak

5 years agoFixed memory leak
Armin Novak [Fri, 5 Apr 2019 11:01:59 +0000 (13:01 +0200)]
Fixed memory leak

5 years agoFixed possible memory leak.
Armin Novak [Fri, 5 Apr 2019 09:40:10 +0000 (11:40 +0200)]
Fixed possible memory leak.

5 years agoFixed index data type
Armin Novak [Fri, 5 Apr 2019 09:40:02 +0000 (11:40 +0200)]
Fixed index data type

5 years agoMerge pull request #5266 from akallabeth/file_list_synth
Martin Fleisz [Wed, 8 May 2019 13:05:05 +0000 (15:05 +0200)]
Merge pull request #5266 from akallabeth/file_list_synth

Added a proper synthesizer for FileGroupDescriptorW to text/uri-list

5 years agoFixed error checks and uninitialized values in convert_filedescriptors_to_uri_list
Armin Novak [Wed, 8 May 2019 12:41:22 +0000 (14:41 +0200)]
Fixed error checks and uninitialized values in convert_filedescriptors_to_uri_list

5 years agoRefactored settings getter/setter to stay compatible.
Armin Novak [Wed, 8 May 2019 12:35:25 +0000 (14:35 +0200)]
Refactored settings getter/setter to stay compatible.

5 years agoFixed use of settings getter/setter
Armin Novak [Mon, 6 May 2019 07:51:42 +0000 (09:51 +0200)]
Fixed use of settings getter/setter

5 years agoAdded python generator for freerdp_[g|s]et_param*
Armin Novak [Thu, 21 Mar 2019 12:08:59 +0000 (13:08 +0100)]
Added python generator for freerdp_[g|s]et_param*

The settings getters and setters are now automatically generated.
Added a test case to check if all available options can be retrieved.

5 years agoMerge pull request #5385 from akallabeth/some_unused_parameter_silenced
Martin Fleisz [Wed, 8 May 2019 12:16:05 +0000 (14:16 +0200)]
Merge pull request #5385 from akallabeth/some_unused_parameter_silenced

Some unused parameter silenced

5 years agoMerge pull request #5383 from akallabeth/gfx_spec_update
Martin Fleisz [Wed, 8 May 2019 11:42:50 +0000 (13:42 +0200)]
Merge pull request #5383 from akallabeth/gfx_spec_update

Updated GFX to 10.6 spec

5 years agoFixed doulbe semicolon in C files.
Armin Novak [Wed, 8 May 2019 10:58:01 +0000 (12:58 +0200)]
Fixed doulbe semicolon in C files.

5 years agoSilenced unused parameter warnings in smartcard trace
Armin Novak [Wed, 8 May 2019 10:26:04 +0000 (12:26 +0200)]
Silenced unused parameter warnings in smartcard trace

5 years agoSilenced some unused parameter warnings.
Armin Novak [Wed, 8 May 2019 10:20:43 +0000 (12:20 +0200)]
Silenced some unused parameter warnings.

5 years agoFixed memory leak and return values in rdpgfx_recv_caps_advertise_pdu
Armin Novak [Wed, 8 May 2019 10:05:58 +0000 (12:05 +0200)]
Fixed memory leak and return values in rdpgfx_recv_caps_advertise_pdu

5 years agoAdded gfx capability filter option.
Armin Novak [Wed, 8 May 2019 09:43:22 +0000 (11:43 +0200)]
Added gfx capability filter option.

With this new option it is possible to selectively disable certain
GFX capability versions. This way buggy behaviour can be addressed
at runtime.

5 years agoFixed alignment requirements for surface sizes.
Armin Novak [Wed, 8 May 2019 08:32:01 +0000 (10:32 +0200)]
Fixed alignment requirements for surface sizes.

5 years agoMerge pull request #5384 from m4ntis/fix-readme
David Fort [Tue, 7 May 2019 19:50:13 +0000 (21:50 +0200)]
Merge pull request #5384 from m4ntis/fix-readme

Add .md file extention to README

5 years agoMerge pull request #5339 from akallabeth/update_paint_lock
Martin Fleisz [Tue, 7 May 2019 13:49:58 +0000 (15:49 +0200)]
Merge pull request #5339 from akallabeth/update_paint_lock

Unified update->BeginPaint and update->EndPaint

5 years agoAdd .md file extention to README
Mati Shabtay [Tue, 7 May 2019 13:11:05 +0000 (16:11 +0300)]
Add .md file extention to README

5 years agoFixed missing argument checks.
Armin Novak [Tue, 7 May 2019 11:46:24 +0000 (13:46 +0200)]
Fixed missing argument checks.

The arguments for rdpgfx_send_frame_acknowledge_pdu must be checked
as in some call stacks they might be NULL.

5 years agoOptimized image scaling, copy if factor is 1.0
Armin Novak [Tue, 7 May 2019 10:10:23 +0000 (12:10 +0200)]
Optimized image scaling, copy if factor is 1.0

5 years agoUpdated GFX to 10.6 spec
Armin Novak [Tue, 7 May 2019 08:22:02 +0000 (10:22 +0200)]
Updated GFX to 10.6 spec

5 years agoMerge pull request #5381 from akallabeth/swscale
Martin Fleisz [Tue, 7 May 2019 09:07:50 +0000 (11:07 +0200)]
Merge pull request #5381 from akallabeth/swscale

Added image scaling api for software drawing.

5 years agoAdded image scaling api for software drawing.
Armin Novak [Mon, 6 May 2019 11:18:31 +0000 (13:18 +0200)]
Added image scaling api for software drawing.

For future GFX channel functions an image scaling function is required.
This moves the implementation from wayland client to core library
and adds support for the much faster SWScale library.

5 years agoMerge pull request #5376 from kubistika/bugfix/rdpgfx-server-v10.6-PDUs
akallabeth [Mon, 6 May 2019 13:32:32 +0000 (15:32 +0200)]
Merge pull request #5376 from kubistika/bugfix/rdpgfx-server-v10.6-PDUs

rdpgfx: Fix GFX v10.6 PDUs parsing and naming according to the spec

5 years agoMerge pull request #5377 from m4ntis/gfx/fix-caps-confirm-recv
akallabeth [Mon, 6 May 2019 10:51:23 +0000 (12:51 +0200)]
Merge pull request #5377 from m4ntis/gfx/fix-caps-confirm-recv

client/rdgpfx_main.c: Fix rdpgfx_recv_caps_confirm_pdu caps length read

5 years agoMerge pull request #5378 from m4ntis/gfx/manual-frame-ack-caps-sync
David Fort [Mon, 6 May 2019 06:07:32 +0000 (08:07 +0200)]
Merge pull request #5378 from m4ntis/gfx/manual-frame-ack-caps-sync

rdpgfx/client: Add callbacks for manual caps sending and frame acking

5 years agoclient/rdpgfx_main.h: Formatting
Mati Shabtay [Sun, 5 May 2019 13:27:11 +0000 (16:27 +0300)]
client/rdpgfx_main.h: Formatting

5 years agoFixed const correctness of gfx function pointer
Armin Novak [Thu, 2 May 2019 05:03:16 +0000 (07:03 +0200)]
Fixed const correctness of gfx function pointer

Signed-off-by: Mati Shabtay <matishabtay@gmail.com>
5 years agordpgfx/client: Add callbacks for manual caps sending and frame acking
Mati Shabtay [Sun, 5 May 2019 12:31:18 +0000 (15:31 +0300)]
rdpgfx/client: Add callbacks for manual caps sending and frame acking

5 years agoclient/rdgpfx_main.c: Fix rdpgfx_recv_caps_confirm_pdu caps length read
Mati Shabtay [Sun, 5 May 2019 10:39:04 +0000 (13:39 +0300)]
client/rdgpfx_main.c: Fix rdpgfx_recv_caps_confirm_pdu caps length read

5 years agordpgfx: Fix GFX v10.6 PDUs parsing and naming according to the spec
kubistika [Sun, 5 May 2019 09:34:57 +0000 (12:34 +0300)]
rdpgfx: Fix GFX v10.6 PDUs parsing and naming according to the spec

5 years agoMerge pull request #5308 from akallabeth/fix_win32_overlinking
Bernhard Miklautz [Fri, 3 May 2019 10:01:51 +0000 (12:01 +0200)]
Merge pull request #5308 from akallabeth/fix_win32_overlinking

Fixed windows overlinking.

5 years agoFix smartcard segfault when no devices are present (#5364)
r-barnett [Thu, 2 May 2019 04:11:57 +0000 (23:11 -0500)]
Fix smartcard segfault when no devices are present (#5364)

* Don't assume smartcard reader list is not empty.

* Check status of retrieval of smartcard device list before trying to filter it

* style fixes

5 years agoandroid_freerdp.c: fixed wrong registered signature (#5371)
amratsingh [Thu, 2 May 2019 03:59:52 +0000 (09:29 +0530)]
android_freerdp.c: fixed wrong registered signature (#5371)

5 years agoMerge pull request #5260 from akallabeth/rail_spec_update
Martin Fleisz [Mon, 29 Apr 2019 09:27:26 +0000 (11:27 +0200)]
Merge pull request #5260 from akallabeth/rail_spec_update

Rail spec update

5 years agoMerge pull request #5306 from akallabeth/gfx_server_caps_input_checks
Martin Fleisz [Mon, 29 Apr 2019 09:27:06 +0000 (11:27 +0200)]
Merge pull request #5306 from akallabeth/gfx_server_caps_input_checks

Fixed input stream length checks in rdpgfx_recv_caps_advertise_pdu

5 years agoFixed typo in RAIL_ZORDER_SYNC
Armin Novak [Fri, 26 Apr 2019 11:14:30 +0000 (13:14 +0200)]
Fixed typo in RAIL_ZORDER_SYNC

5 years agoFixed input stream length checks in rdpgfx_recv_caps_advertise_pdu
Armin Novak [Fri, 15 Mar 2019 07:39:46 +0000 (08:39 +0100)]
Fixed input stream length checks in rdpgfx_recv_caps_advertise_pdu

5 years ago5360 segfault using smartcard without any readers (#5361)
Pascal J. Bourguignon [Fri, 26 Apr 2019 07:10:41 +0000 (09:10 +0200)]
5360 segfault using smartcard without any readers (#5361)

* Fix: corrected test for astyle.

* Fix: added test for NULL readers returned by ConvertFromUnicode.

5 years agorail_orders.c: Fix wrong callback call on server handshake ex recv (#5345)
Mati Shabtay [Thu, 25 Apr 2019 08:55:24 +0000 (11:55 +0300)]
rail_orders.c: Fix wrong callback call on server handshake ex recv (#5345)

5 years agoxf_cliprdr: detect null terminators more reliably. (#5353)
sgtatham [Thu, 25 Apr 2019 08:54:10 +0000 (09:54 +0100)]
xf_cliprdr: detect null terminators more reliably. (#5353)

Clipboard formats containing plain text are specified to be terminated
by a \0 character in MS's documentation on standard clipboard formats:
https://docs.microsoft.com/en-us/windows/desktop/dataxchg/standard-clipboard-formats

xf_cliprdr_server_format_data_response receives pasted data from the
server to transfer to the client, in a sufficiently raw form that the
\0 terminator is still present, so it has to remove it. It does so by
checking only at the very end of the data. But I've observed that when
pasting out of at least one Windows program (namely Outlook 1903 on
Windows 10), the intended paste data arrives in this function followed
by \0 and then a spurious \n. In that situation the null-terminator
removal will fail to notice the \0, and will leave both bogus
characters on the end of the paste.

Fixed by using memchr to find the _first_ \0 in the paste data, which
should not lose any actually intentional data because it's in
accordance with the spec above.

5 years agoMerge pull request #5354 from ffontaine/master
David Fort [Tue, 23 Apr 2019 07:56:16 +0000 (09:56 +0200)]
Merge pull request #5354 from ffontaine/master

xf_floatbar.c: fix build without Xfixes

5 years agoxf_floatbar.c: fix build without Xfixes
Fabrice Fontaine [Thu, 18 Apr 2019 21:40:52 +0000 (23:40 +0200)]
xf_floatbar.c: fix build without Xfixes

Remove unneeded include on Xfixes.h as it is not always available and
not used in xf_floatbar.c

Fixes:
 - http://autobuild.buildroot.org/results/69245e574787bada718c52c805ec137041dc233d

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
5 years agoUnified update->BeginPaint and update->EndPaint
Armin Novak [Thu, 11 Apr 2019 13:30:05 +0000 (15:30 +0200)]
Unified update->BeginPaint and update->EndPaint

Since these functions were called from 2 different threads
(main thread or dynamic channel) depending on fastpath or
gfx channel use lock between these.
If not locked the invalid region may be accessed from both
threads and lead to crashes as experienced with nightly df280a7ff

5 years agoFreeRDP#5329 if using OldLicenseBehaviour, don't try to save the Cal since we're...
byteboon [Mon, 8 Apr 2019 07:42:02 +0000 (00:42 -0700)]
FreeRDP#5329 if using OldLicenseBehaviour, don't try to save the Cal since we're not going to try to load it (#5330)

5 years agoFix segfault when IniFile_Load is called with invalid input (#5331)
Kubistika [Mon, 8 Apr 2019 07:26:46 +0000 (10:26 +0300)]
Fix segfault when IniFile_Load is called with invalid input (#5331)

* Fix segfault when IniFile_Load is called with invalid input

* Fix leak in TestIni.c third testcase

* TestIni.c: Refactor in order to avoid some old compilers errors

5 years agoMerge pull request #5240 from akallabeth/sign_compare_fixes_v2
David Fort [Fri, 5 Apr 2019 12:13:03 +0000 (14:13 +0200)]
Merge pull request #5240 from akallabeth/sign_compare_fixes_v2

Sign compare fixes v2

5 years agoAdded optional PreFrameAck callback to RdpgfxClientContext (#5303)
Mati Shabtay [Fri, 5 Apr 2019 11:37:51 +0000 (14:37 +0300)]
Added optional PreFrameAck callback to RdpgfxClientContext  (#5303)

* RdpgfxClientContext: Add PreFrameAck callback

* client/rdpgfx_main.c: Call PreFrameAck callback before acking frame

* client/rdpgfx_main.c: Fix windows_msbuild_vs2010 CI build

* client/rdpgfx_main.c: Fix error logs log level

5 years agoRemove unnecessary clipboard data copy.
Armin Novak [Fri, 5 Apr 2019 08:04:01 +0000 (10:04 +0200)]
Remove unnecessary clipboard data copy.

5 years agoclipboard: correctly handle flags during renegociatiion (#5323)
David Fort [Fri, 5 Apr 2019 07:36:53 +0000 (09:36 +0200)]
clipboard: correctly handle flags during renegociatiion (#5323)

5 years agoFixed ntlm_av_pair_get_len return, no signed value required
Armin Novak [Fri, 5 Apr 2019 07:28:09 +0000 (09:28 +0200)]
Fixed ntlm_av_pair_get_len return, no signed value required

5 years agoFixed argument pointer type cast
Armin Novak [Fri, 5 Apr 2019 07:22:50 +0000 (09:22 +0200)]
Fixed argument pointer type cast

5 years agoFixed sign issues
Armin Novak [Fri, 5 Apr 2019 07:22:35 +0000 (09:22 +0200)]
Fixed sign issues

5 years agoFixed unnecessary casts in freerdp_image_copy.
Armin Novak [Thu, 21 Feb 2019 15:32:19 +0000 (16:32 +0100)]
Fixed unnecessary casts in freerdp_image_copy.

5 years agoDisabled -Wimplicit-fallthrough for instances where its use is intended.
Armin Novak [Wed, 20 Feb 2019 12:53:25 +0000 (13:53 +0100)]
Disabled -Wimplicit-fallthrough for instances where its use is intended.

5 years agoFixed broken implicit fallthrough
Armin Novak [Wed, 20 Feb 2019 12:52:39 +0000 (13:52 +0100)]
Fixed broken implicit fallthrough

5 years agoRemoved duplicate argument checks.
Armin Novak [Fri, 8 Feb 2019 12:45:01 +0000 (13:45 +0100)]
Removed duplicate argument checks.

5 years agoFixed GetModuleFileNameW.
Armin Novak [Fri, 8 Feb 2019 11:19:57 +0000 (12:19 +0100)]
Fixed GetModuleFileNameW.

5 years agoFixed review remarks.
Armin Novak [Fri, 8 Feb 2019 11:01:33 +0000 (12:01 +0100)]
Fixed review remarks.