Commit Graph

3275 Commits

Author SHA1 Message Date
Armin Novak
0f9efe1972 Fixed /gt:xxx settings
* Disable websocket support with RPC
* Use settings getter/setter

(cherry picked from commit 882b91d986)
2022-04-19 15:00:28 +02:00
Kazuki Oikawa
572c63a9f1 Supports 10bit X11 color (BGRX32 only)
(cherry picked from commit 8a86a4e8d9)
2022-04-19 08:54:32 +02:00
Armin Novak
2008751c04 Replaced WINPR_ASSERT defines, use include 2022-03-28 12:08:51 +02:00
Armin Novak
baf35cece9 Implemented #4341: Default to /network:auto
If no arguments are supplied, default to the behaviour of
/network:auto. This ensures the default experience is using the
best available graphics options.
As soon as any /network, /bpp, /rfx, /gfx, ... argument is used
only use these.

(cherry picked from commit d3168a1436)
2022-03-09 16:19:34 +01:00
Armin Novak
658a72980f Abort autoreconnect if a user cancel action was triggered.
(cherry picked from commit 15e7647f20)
2022-03-07 15:24:08 +01:00
Armin Novak
5e4347681d Changelog & version 2022-03-07 15:24:08 +01:00
akallabeth
de805f8565 Decreased logging verbosity for INFO level
(cherry picked from commit e6b0373859)
2022-03-03 10:52:00 +01:00
Armin Novak
9e497c22a9 Updated chanelog and version 2022-02-22 12:41:11 +01:00
akallabeth
409ed441c1 Make mac native client build configuratble
(cherry picked from commit 32e01fe652)
2022-02-17 10:06:06 +00:00
Armin Novak
a633ae3532 Fixed #7636: GetStringUTFLength requires jstring argument
(cherry picked from commit f46f48dcd6)
2022-02-14 09:21:41 +00:00
Armin Novak
d807f6dbbc Added better way to check for H264 support
* Added a function that actually tests, if H264 is working.

(cherry picked from commit 95db33af44)
2022-01-26 12:38:11 +01:00
akallabeth
00900c5cbb Updated version and changelog. 2022-01-26 12:10:47 +01:00
akallabeth
6ea43d1d73 Increased required android version to 6.0 (API 23)
There are library loader issues with OpenSSL below that API version.
(Undefined symbols most likely due to versioning mismatches of the
OpenSSL build)
2022-01-26 12:10:47 +01:00
akallabeth
3e3e1f0293 Skip library version from android glue library 2022-01-26 12:10:47 +01:00
akallabeth
12357dbe81 Fixed build tool version
(cherry picked from commit abcc0fcf9e)
2022-01-26 12:10:47 +01:00
akallabeth
e586bace21 Fixed #7541: maximum resolution, removed unused strings
(cherry picked from commit 29f2e52618)
2022-01-26 12:10:47 +01:00
akallabeth
1cfd658545 Updated build tools
(cherry picked from commit 4f451fe617)
2022-01-26 12:10:47 +01:00
akallabeth
f703947f56 Updated android build dependencies
(cherry picked from commit aa89d01af4)
2022-01-26 12:10:47 +01:00
akallabeth
de95335701 Added support for getpwuid_r, replaced duplicate code
* Use GetUserNameExA to get current user name when required.
* Add support for getpwuid_r if available

(cherry picked from commit 8a155db877)
2022-01-25 15:34:15 +01:00
Armin Novak
fd4876a087 Updated changelog 2022-01-12 09:30:05 +01:00
Armin Novak
569bee2161 Fixed leaks and type mismatches for wayland client
(cherry picked from commit 366c893d2a)
2022-01-11 11:45:01 +01:00
Armin Novak
4fb4652117 Fixed #7529: Adjust windows client update area
When scrollbars are used, the update area needs to be adjusted.

(cherry picked from commit be5ace1123)
2022-01-10 13:12:04 +01:00
Ely Ronnen
3a842a6383 fixing android pointer not initialized when calling realloc
(cherry picked from commit 4053ac37f3)
2021-11-29 08:18:25 +01:00
akallabeth
ada22bc925 Incremented android build version. 2021-11-05 14:57:11 +01:00
akallabeth
d39a7ba5c3
Stable 2.0 backports (#7366)
* Fixed typo in changelog

* Fix FIPS mode support and build with OpenSSL 3.0

FreeRDP fails to build with OpenSSL 3.0 because of usage of the `FIPS_mode`
and `FIPS_mode_set` functions, which were removed there. Just a note that
the FIPS mode is not supported by OpenSSL 1.1.* although the mentioned
functions are still there (see https://wiki.openssl.org/index.php/FIPS_modules).
Let's make FreeRDP build with OpenSSL 3.0 and fix the FIPS mode support.

See: https://bugzilla.redhat.com/show_bug.cgi?id=1952937
(cherry picked from commit 26bf2816c3)

* winpr: avoid calling FIPS_mode() with OpenSSL 3.0

Fixes: 26bf2816c3
(cherry picked from commit 0c81c73c8d)

* winpr/crypto: Load legacy provider to fix rc4 with OpenSSL 3.0 (#7210)

* winpr/crypto: Exit cleanly when EVP_EncryptInit_ex fails

The `EVP_EncryptInit_ex` function may fail in certain configurations.
Consequently, FreeRDP segfaults in `EVP_CIPHER_CTX_set_key_length`.
Let's handle the `EVP_EncryptInit_ex` failures and exit cleanly in
such case.

* winpr/crypto: Load legacy provider to fix rc4 with OpenSSL 3.0

Currently, the `EVP_EncryptInit_ex` function fails for rc4 with OpenSSL 3.0.
This is becuase rc4 is provided by the legacy provider which is not loaded
by default. Let's explicitly load the legacy provider to make FreeRDP work
with OpenSSL 3.0.

Relates: https://github.com/openssl/openssl/issues/14392
Fixes: https://github.com/FreeRDP/FreeRDP/issues/6604
(cherry picked from commit 67f3fff2c8)

Conflicts:
	winpr/libwinpr/crypto/cipher.c

* Fix TestUnicodeConversion on big endian machines (#7219)

Wide character literals are stored in native byte order.
Use an array of bytes as a reference instead.

Fixes: https://github.com/FreeRDP/FreeRDP/issues/6968
(cherry picked from commit 5208a67ea7)

* Fixed async-input quit

* Fix data write on usb channel

* Bitmap update fix (#7349)

* Added checks for bitmap width and heigth values

Data received from the server might have invalid values for bitmap
with or height. Abort parsing if such a value is found.
Reported by Sunglin from the Knownsec 404 team & 0103 sec team

* Added checks for glyph width & height

* Fixed #7363: Length checks in ConvertUTF8toUTF16

(cherry picked from commit 623a77258a)

* Implemented missing TSG debug functions

(cherry picked from commit c06c463806)

* Refactored RPC gateway parser

Utilize wStream instead of custom binary parsing code, add proper
input validation.
Reported by Sunglin from the Knownsec 404 team & 0103 sec team

(cherry picked from commit f0b44da67c)

* Replaced chmod with safer fchmod

* Use fchmod so the file may not change underneath
* Add unit tests for SetFileAttributesA
* Add warning logs for unsupported flags

(cherry picked from commit c8571dd5fd)

* Updated changelog and version

* Added more explicit warning for deprecated command line

* Add exit codes for more errors

(cherry picked from commit aa4c3dfb8a)

* Updated changelog.

Co-authored-by: Ondrej Holy <oholy@redhat.com>
Co-authored-by: Mike Gilbert <floppym@gentoo.org>
Co-authored-by: Ondrej Holy <ondrejholy@users.noreply.github.com>
Co-authored-by: Ian Weir <mr.weir@me.com>
2021-10-21 08:30:50 +02:00
Armin Novak
301d84c62e Fixed async-input quit 2021-08-24 13:44:53 +02:00
Armin Novak
230a09a671 changelog 2021-07-27 11:57:33 +02:00
akallabeth
537a877627 Replace fopen and path functions with wrappers (#7043)
Functions like fopen, PathFileExists, PathMakePath need to call
the wide character versions on windows for utf-8 support.

(cherry picked from commit 6b36c6d417)
2021-07-27 11:57:33 +02:00
Armin Novak
7019140a22 Fixed missing input checks for file contents request
reported by Valentino Ricotta (Thalium)

(cherry picked from commit 73a87309bb)
2021-07-27 11:57:33 +02:00
Armin Novak
820f5c0af5 Fixed #7164: android clipboard string termination
(cherry picked from commit a6990ec188)
2021-07-12 12:02:39 +02:00
Arturo Iacobelli
c0020308eb Switched usage to AndroidX libraries. 2021-07-08 10:16:25 +02:00
akallabeth
1c52fc8de7 Fixed #6938: Remote app mode clipboard fix
In remote app mode the _FREERDP_TIMESTAMP_PROPERTY does not work.
Therefore ignore it

(cherry picked from commit f2254f0b09)
2021-05-25 15:30:50 +02:00
akallabeth
c32cc8812e Ensure canvas background is black before drawing
(cherry picked from commit 618afd7028)
2021-03-15 10:43:54 +01:00
akallabeth
2612b32a72 Updated OpenSSL and android dependencies
(cherry picked from commit 54fa29dc2d)
2021-03-15 10:43:54 +01:00
akallabeth
7beda29158 Fixed CodeQL warnings
(cherry picked from commit 95a9e60827)
2021-03-12 12:41:44 +01:00
Armin Novak
9e1e318512 Fix /monitor-list 2021-03-12 12:18:34 +01:00
akallabeth
187cbdfe2c Use specific names for drive hotplug special values
(cherry picked from commit b1be3d78fc)
2021-03-09 16:08:08 +01:00
akallabeth
f4c87729e3 Backported #6865: Disable websockets command line option 2021-03-08 15:33:23 +01:00
akallabeth
899be1b564 Fix xf_Pointer_SetPosition with smart-sizing
(cherry picked from commit d3e3ab7b5d)
2021-03-08 14:35:28 +01:00
akallabeth
48ce8fabd8 Updated changelog for next stable 2021-03-02 08:31:28 +01:00
akallabeth
136a58fbd0 Added -DDEFINE_NO_DEPRECATED CMake option
With that option all symbols marked deprecated are no longer
compiled. This helps testing compatibility of external apps.
2021-03-01 10:58:24 +01:00
akallabeth
f7295b31d7 Added changelog. 2021-03-01 10:58:24 +01:00
akallabeth
d88480fc48 Fixed a leak on mouse cursor updates 2021-03-01 10:58:24 +01:00
akallabeth
dc179867cc 2.0 compatibility for rdpinput flag debug function 2021-02-25 09:51:41 +01:00
akallabeth
e5f92ba550 Fixed #6712: Use window size from settings
The xfc->window might be NULL (remote app, ...)

(cherry picked from commit 6ecd440658)
2021-02-25 09:51:41 +01:00
Fabio Fantoni
689ca72285 Minor typo fix
From debian packages patch done by Mike Gabriel
<mike.gabriel@das-netzwerkteam.de>

(cherry picked from commit 5c408e080e)
2021-02-25 09:51:41 +01:00
Marc-André Moreau
3047a73744 freerdp-client: don't enable vmconnect mode based on PCB field presence in .RDP file
(cherry picked from commit 4e14e7d41e)
2021-02-25 09:51:41 +01:00
Pascal Nowack
0f4ca4c3fb clients: Use the correct wheel rotation value
For the negative scrolling direction, RDP uses the two's complement,
instead of the positive wheel value with the negative flag.
xfreerdp currently uses the positive wheel value in addition to the
negative flag, which results in a wrong wheel value on the server side
(136 instead of 120).

Fix this, by using the correct wheel rotation value, which is in the
two's complement.

(cherry picked from commit 1087a5e1a6)
2021-02-25 09:51:41 +01:00
akallabeth
97327cbf33 Fixed #6801: Delay sending of resolution change
Changed the logic of the disp channel to wait for 800ms after a
ConfigureNotify before sending the new resolution.
The problem fixed with this patch is the following:
1.  Resize the window with the mouse
2.  ConfigureNotify triggers a resize notification
3.  The server resizes to the desired resolution
3a. More ConfigureNotify events are generated
4.  The local window resize to the new resolution triggers another
    ConfigureNotify

a. Depending on the timing (sending is already rate limited) the
   events from 3a and 4 will make the size of the window jump
b. Very fast resizing will pick a random resolution from the
   sequence of ConfigureNotify events as the final resolution

(cherry picked from commit d3ed42a799)
2021-02-25 09:51:41 +01:00
Armin Novak
5e89baddd9 Increased version to 2.3.0 2021-02-25 09:51:41 +01:00