Commit Graph

3209 Commits

Author SHA1 Message Date
Armin Novak
cbf2a59dd9 Fixed unit tests run under memory sanitizer
(cherry picked from commit 816e792e3f)
2021-02-25 09:51:41 +01:00
akallabeth
b55664d7c1 Fixed sending of clipboard format request response
If a request was pending and new formats were announced the response
to a ServerFormatDataRequest was never sent.

(cherry picked from commit 2efb7d9274)
2021-02-25 09:51:41 +01:00
Armin Novak
d62e679821 [MAC] Keep original return value for client termination
(cherry picked from commit 9e63f35cc5)
2021-02-25 09:51:41 +01:00
akallabeth
87db6078f0 Do not eliminate original error status.
(cherry picked from commit 050a68fec9)
2021-02-25 09:51:41 +01:00
akallabeth
2dbd33b5bb Refactored freerdp_client_settings_command_line_status_print_ex
Now returns 0 if help or version information was requested.

(cherry picked from commit 531dd81836)
2021-02-25 09:51:41 +01:00
Ondrej Holy
cf3ba75673 client: Fix exit codes for /help and similar option
Currently, non-zero exit code is returned for /version, /buildconfig, /help,
/monitor-list, /kbd-list and /kbd-lang-list command-line options for several
clients. This is against conventions because 0 is usually returned in
such cases. Also, there is potentially another problem that the returned
codes overflow on UNIX systems (where the exit code is a number between 0
and 255). Let's fix the clients to return 0 in the mentioned cases to honor
conventions and 1 for the command-line parsing errors (or -1 for clients
who already use that value).

Fixes: https://github.com/FreeRDP/FreeRDP/issues/6686
(cherry picked from commit 3ee4cabcfa)
2021-02-25 09:51:41 +01:00
kubistika
9d8d5e5969 x11: use correct contact flag names in xf_input_touch_state_string
(cherry picked from commit a94fe816a4)
2021-02-25 09:51:41 +01:00
Keith Johnston
04d2db2730 Fix for mac mousewheel.
(cherry picked from commit 87a4a8484e)
(cherry picked from commit c0ecee9d69)
2020-12-02 14:23:19 +01:00
Armin Novak
e4b30a5cb6 Removed obsolete connectErrorCode
(cherry picked from commit 3b63903d3f)
2020-12-02 14:17:54 +01:00
akallabeth
cb8af3271e Allow autoreconnect for ERRINFO_GRAPHICS_SUBSYSTEM_FAILED
As discussed in #4717 allow autoreconnect to succeed if that
specific error code was returned as disconnection reason.

(cherry picked from commit 552a7ca25f)
2020-12-02 14:12:33 +01:00
Armin Novak
aa6d116446 Added permission checks for mac audio backend.
(cherry picked from commit 0e0eb5f41f)
2020-12-02 14:10:01 +01:00
Armin Novak
4a148e8704 Fixed mac app termination and warnings
(cherry picked from commit a2e9f5efcb)
2020-12-02 14:09:54 +01:00
akallabeth
aca1866fc9 Added support for xwayland keyboard grab
(cherry picked from commit 896b7bc711)
2020-12-02 09:00:52 +01:00
akallabeth
ac0f0c6500 Added clipboard CB_HUGE_FILE_SUPPORT_ENABLED flag
(cherry picked from commit f282c55c7a)
2020-12-01 15:10:23 +01:00
Armin Novak
507fecf50e Fixed warnings.
(cherry picked from commit e50a8e09ee)
2020-12-01 15:10:23 +01:00
akallabeth
92488d5a3c Use freerdp_settings_[s|g]et* api to access proxy vaiables.
Fixes #6414

(cherry picked from commit 44ea09e7ad)
2020-08-05 11:48:39 +02:00
Martin Fleisz
3522179074 Add GatewayMessageType to public API
(cherry picked from commit 174f3257c9)
2020-08-05 10:59:50 +02:00
Martin Fleisz
c424322be3 Implement gateway message callback for Windows, Wayland and X11 clients
(cherry picked from commit 2fe8e762d2)
2020-08-05 10:59:50 +02:00
akallabeth
757b4106e6 Updated version information for 2.2.0 release 2020-07-07 10:56:21 +02:00
Armin Novak
894d926a29 Fixed #6335: windows client title length
(cherry picked from commit dfbeeb1e16)
2020-07-06 11:14:35 +02:00
akallabeth
6565326bcd Use CMake to detect availability of getlogin_r
(cherry picked from commit 3a5bfd2bd0)
2020-07-06 11:13:51 +02:00
Armin Novak
93bed51ae2 Updated versions to 2.1.2 2020-06-22 12:26:08 +02:00
akallabeth
3606dfa921 Replaced getlogin with getlogin_r
(cherry picked from commit 36478d3d0b)
2020-06-22 12:12:02 +02:00
akallabeth
4d6a800850 Fixed missing lock during buffer submit.
(cherry picked from commit c902f583d0)
2020-06-22 09:30:52 +02:00
Bernhard Miklautz
7f2de8419a fix [client channels]: move exported API calls to client/common
The functions mappedGeometryRef and mappedGeometryUnref are API
functions ([1]) but were implemented in the geometry channel.
In case FreeRDP was built with BUILTIN_CHANNELS=OFF those functions
weren't available globally but used by the video channel.

Now the functions are fixed part of the freerdp-client library and
therefore available for all channels.

[1] exported in freerdp/client/geometry.h

Fixes #6236

(cherry picked from commit 1628939227)
2020-06-22 09:30:42 +02:00
akallabeth
809a86f0fb Lock wayland buffer updates
(cherry picked from commit 7361f75d11)
2020-06-22 09:30:15 +02:00
makki_d
0121f726d8 fix +unmap-buttons option having the opposite effect
(cherry picked from commit 4607a2766a)
2020-06-16 11:19:41 +02:00
Ondrej Holy
9a7180cf90 wlfreerdp: Fix array overrun
This fixes the following defects reported by covscan tool:
 - client/Wayland/wlf_input.c:251: overrun-local: Overrunning array "contacts" of 10 32-byte elements at element index 10 (byte offset 351) using index "i" (which evaluates to 10).
 - client/Wayland/wlf_input.c:308: overrun-local: Overrunning array "contacts" of 10 32-byte elements at element index 10 (byte offset 351) using index "i" (which evaluates to 10).
 - client/Wayland/wlf_input.c:360: overrun-local: Overrunning array "contacts" of 10 32-byte elements at element index 10 (byte offset 351) using index "i" (which evaluates to 10).
 - client/Wayland/wlf_input.c:251: error[arrayIndexOutOfBounds]: Array 'contacts[10]' accessed at index 10, which is out of bounds.
 - client/Wayland/wlf_input.c:308: error[arrayIndexOutOfBounds]: Array 'contacts[10]' accessed at index 10, which is out of bounds.
 - client/Wayland/wlf_input.c:360: error[arrayIndexOutOfBounds]: Array 'contacts[10]' accessed at index 10, which is out of bounds.
 - client/Wayland/wlf_input.c:246: uninit_use_in_call: Using uninitialized value "y" when calling "wlf_scale_coordinates".
 - client/Wayland/wlf_input.c:246: uninit_use_in_call: Using uninitialized value "x" when calling "wlf_scale_coordinates".

The maximal number of touches can be higher then 10, see:
https://wayland.freedesktop.org/libinput/doc/latest/touchpads.html

Let's increse the MAX_CONTACTS count and add checks to prevent usage of
uninitialized values.

(cherry picked from commit 6ab79961ef)
2020-06-16 09:08:22 +02:00
Simon Tatham
dc735d3d36 [generate_argument_docbook] Fix typo in XML entity.
The character '>' was being rendered as < instead of >.

(cherry picked from commit 98930bf275)
2020-06-16 09:07:48 +02:00
Armin Novak
ce6f2a271b Fixed #6221: Update floatbar position with multitouch input
(cherry picked from commit 004910ce5d)
2020-06-16 09:05:31 +02:00
akallabeth
b83f79c3b3 Read newline from stdio on certificate accept
(cherry picked from commit 5b842bc7a7)
2020-06-16 09:05:01 +02:00
akallabeth
3c33c6e1a2 Prepared version for 2.1.1 2020-05-20 15:55:52 +02:00
akallabeth
8d9464fbc5 Fixed BehaviourSanitizer warning in rdp parser
(cherry picked from commit 771332c04e2dbad964d0cb11a86ff561e792bc35)
2020-05-18 17:10:01 +02:00
Victor K
899df25246 Windows Authentication - Then launced with username argument prefill the name in the authentication box.
(cherry picked from commit 318075676b)
2020-05-18 16:56:03 +02:00
akallabeth
64bec7586d Replaced strtok with strtok_s
(cherry picked from commit 7890833af8)
2020-05-18 16:56:03 +02:00
akallabeth
dd156de828 Fixed NULL access of context struct on screen draw
Added a log message to fix occurances later on.

(cherry picked from commit cfea3fc6ed)
2020-05-18 16:56:03 +02:00
akallabeth
472eece629 Fixed sample client resource cleanup
(cherry picked from commit e716f82311)
2020-05-18 16:56:03 +02:00
akallabeth
2d5ce618bf 2.1.0 release version. 2020-05-08 11:23:05 +02:00
akallabeth
63730ab349 Fixed warning messages for RDP file options
networkautodetect and bandwidthautodetect are both boolean options
which must match each other. Added adequate warnings.

(cherry picked from commit 5f5bf10703)
2020-05-08 11:06:02 +02:00
akallabeth
8b37e7fa11 Fixed primary monitor index for wayland fullscreen 2020-05-08 11:06:02 +02:00
akallabeth
00b5ff301f Fixed clipboard 'called with invalid type' warning 2020-05-05 07:46:10 +02:00
Armin Novak
bc4615e5ed Added expert settings /tune and /tune-list 2020-05-05 07:46:10 +02:00
akallabeth
55ee2cce34 Fixed #6087: Inconsistend scroll on wayland
Thanks to @yol and @SaschaWessel a bug in scroll step conversion
was uncovered. The RDP value ranges are inverted when scrolling
in negative direction.
2020-05-05 07:46:10 +02:00
akallabeth
c0a17eb342 Fixed #6121: Use correct destination color format 2020-05-05 07:46:10 +02:00
Sascha Wessel
fe9a5ae5a9 wlfreerdp/cliprdr: Initialize pointer before use
In `wlf_cliprdr_server_format_data_request()` `ConvertToUnicode()` may return 0
while not allocating memory for `cdata` and not setting `cdata` to a valid
address. In this case, `data` points to a random address.

Settting `cdata` to NULL before calling `ConvertToUnicode()` fixes this issues.
2020-05-05 07:46:09 +02:00
Lukas Fink
c668d66e88 Added ability to add usb devs via id and addr simultaneously
It is now possible to add usb devices both via vid+pid and via bus+addr
at the same time. To do this, the ids are directly
given to the corresponding command line options:
/usb🆔<vid+pids>,addr:<bus+addrs>
The dev option still works like before: /usb:id,dev:<vid+pids> or
/usb:addr,dev:<bus+addrs>
2020-05-05 07:46:09 +02:00
Allan Nordhøy
cf13402baf Spelling fixes for iOS strings 2020-05-05 07:46:09 +02:00
akallabeth
973731824b Fixed #6099: Add a flag for legacy hash entries
If a legacy entry is found in certificate hash store print
additional information to the user informing about the change
with FreeRDP 2.0
2020-04-28 14:03:19 +02:00
akallabeth
ccaad04876 Fix initialization of LargePointer flags
Capability exchange is first reading server capabilities,
mask these with local settings and send only what both support.
2020-04-28 14:03:19 +02:00
David Fort
56ca7a6e3a uwac, wlfreerdp: corrected API for UwacOutput and added monitor listing 2020-04-28 14:03:19 +02:00