Граф коммитов

14684 Коммитов

Автор SHA1 Сообщение Дата
Armin Novak 7f05f1a62a Fix data write on usb channel 2021-09-01 08:53:54 +02:00
Armin Novak 301d84c62e Fixed async-input quit 2021-08-24 13:44:53 +02:00
Mike Gilbert 2018488c97 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)
2021-08-19 11:20:29 +02:00
Ondrej Holy 3a0596257e 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
2021-08-19 11:20:29 +02:00
Mike Gilbert f38fb2de68 winpr: avoid calling FIPS_mode() with OpenSSL 3.0
Fixes: 26bf2816c3
(cherry picked from commit 0c81c73c8d)
2021-08-03 08:38:58 +02:00
Ondrej Holy 37447373a5 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)
2021-08-03 08:38:58 +02:00
Armin Novak 647a48dfa7 Fixed typo in changelog 2021-07-27 12:33:02 +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
Marc-André Moreau 92df37bdb0 Fix Windows Unicode file path handling issues (+add winpr_fopen wrapper)
(cherry picked from commit eb6777ea69)
2021-07-27 11:57:33 +02:00
Armin Novak d4f5003bc9 Fixed windows audio recording issues:
1. Fix recording channels to mono
2. Fix alignment of PCM data to 2 bytes

(cherry picked from commit 45d785196d35cdda833529a5c2f6be4283d97e9d)
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 73a87309bbb0905c942b303f995018013461da22)
2021-07-27 11:57:33 +02:00
Armin Novak 820f5c0af5 Fixed #7164: android clipboard string termination
(cherry picked from commit a6990ec188ebc6ca971700d9c445aa4c6ec11349)
2021-07-12 12:02:39 +02:00
Arturo Iacobelli c0020308eb Switched usage to AndroidX libraries. 2021-07-08 10:16:25 +02:00
Armin Novak dae591e580 Updated Changelog 2021-06-02 13:44:47 +02:00
Armin Novak c311a1c695 Fixed issues with planar codec buffer alignment
Align width and height to next multiple of 4 to avoid issues with
internal buffer sizes.

(cherry picked from commit c2049673be9be05a87d62759c55893759ed64d05)
2021-06-02 13:44:47 +02:00
akallabeth 3c908de5a4 Added rdg_read_http_unicode_string error messages
Added log entries in case something in the packet is wrong

(cherry picked from commit 7c2855b4a8c71a994b4ccc245d3faec4a39bed15)
2021-05-25 15:30:50 +02:00
akallabeth 1b8e5c262e changelog 2021-05-25 15:30:50 +02:00
Pascal Nowack 6bd82d4efa codec/progressive: Allow the usage of multithreading for decoding
While decoding RemoteFX encoded frames is multithreaded, decoding
RemoteFX Progressive frames is not, although both codecs work
relatively similarly.
This is especially noticeable with frames, that have a resolution
larger than 1920x1080 pixels.

decompress_tile_first() and decompress_tile_upgrade() can both run in
different threads at the same time for different tiles without necessary
adjustments.

So, do exactly that using the ThreadPool that already exists in the
RFX_CONTEXT to decrease the decoding time and therefore increase the
performance.
On a 3K display (2880x1620 pixels) this makes out of a choppy
experience a fluid experience.

(cherry picked from commit e79fefe21ccd86aa9db3b5c7cd91313da4bd9dd9)
2021-05-25 15:30:50 +02:00
Pascal Nowack 228243b333 codec/progressive: Fix a memory leak
When checking whether tiles and updatedTileIndices are both non-NULL,
one of them might be NULL, while the other struct member might not
be NULL and progressive_surface_context_new() leaks then the non-NULL
struct member.

Fix this by freeing both struct members, when aborting in
progressive_surface_context_new().
free() will take no action on pointers that are NULL, so no additional
check is needed.

(cherry picked from commit 805dc60e1465b8392da35b66a0a65f473755049f)
2021-05-25 15:30:50 +02:00
akallabeth 41d12fdcff Force close clipboard file descriptor if request size is 0
(cherry picked from commit 758b16f0e20b5c5412c1769c7d2b11518edfa758)
2021-05-25 15:30:50 +02:00
akallabeth b3a7a98c45 Force close clipboard files
(cherry picked from commit 781c764dfda8876a8b49288c2fef01cfe1173a7f)
2021-05-25 15:30:50 +02:00
akallabeth febd02cb46 Force fd close on error
(cherry picked from commit 74c46001435a2dfc3b6978bf8d1f25f266a91659)
2021-05-25 15:30:50 +02:00
akallabeth 064a72ac5e Cleaned up clipboard file fd handling
(cherry picked from commit eb4378e3a4f9f4090fa78ef090d06d93bcc59253)
2021-05-25 15:30:50 +02:00
akallabeth 37b5498238 Updated changelog. 2021-05-25 15:30:50 +02:00
akallabeth bca70a89e4 Fixed #6989: Use X509_STORE_set_default_paths
(cherry picked from commit b528ecde4f68d297b8464855a7ae0e02d36b78fc)
2021-05-25 15:30:50 +02:00
Martin Fleisz 9858e08315 event: Fix reset of non eventfd winpr event
(cherry picked from commit b7c4ec759f)
2021-05-25 15:30:50 +02:00
David Fort 65042d308f winpr: fix #6970
Timer changes were wrong when timerfd support is not available (no valid file
descriptor returned by GetFd calls).

(cherry picked from commit 5e3e2cd9fd)
2021-05-25 15:30:50 +02:00
David Fort b5ab8484d3 winpr: fix error path in winpr_event_init (#6974)
(cherry picked from commit db02de2d8b)
2021-05-25 15:30:50 +02:00
David Fort fade0b3573 winpr: correctly implement APC
This patch implements APC functions and fixes waitable timers with completions.

(cherry picked from commit aeba30a505)
2021-05-25 15:30:50 +02:00
David Fort 225285ae36 winpr: cleanup polling code
Externalize all the polling logic in a pollset component. This patch prepares the
support of APC and alertable state.

(cherry picked from commit dfbbf3b618)
2021-05-25 15:30:50 +02:00
Armin Novak 28e6ca5082 Simplified sync test
(cherry picked from commit 18ceebb774)
2021-05-25 15:30:50 +02:00
akallabeth 3c52a4e0d9 Removed duplicated escape
(cherry picked from commit 187946e965)
2021-05-25 15:30:50 +02:00
akallabeth afd6569b40 updated changelog 2021-05-25 15:30:50 +02:00
Armin Novak 93b87ed417 Added version check for deprecated ffmpeg symbols
(cherry picked from commit 80b25de1a8da1c03c96ccad25567fd85823a884e)
2021-05-25 15:30:50 +02:00
Armin Novak bd3c2d9517 Fixed duplicate call to NtCurrentTeb
(cherry picked from commit ca1fe0193e2728635b415478dc366939817cfb6c)
2021-05-25 15:30:50 +02:00
Armin Novak 6cdb0193da Fix NTLM auth message return code.
(cherry picked from commit aae3386226b1173c47a22843d52e5ed9897586e0)
2021-05-25 15:30:50 +02:00
akallabeth 9bb6aaad54 Cleaned up SAM file parser.
(cherry picked from commit b500800104)
2021-05-25 15:30:50 +02:00
akallabeth 9eddd2e09a Fixed log filter initialization from env
(cherry picked from commit 4dc40c4b642372a1691ee17295555c5f5babec2e)
2021-05-25 15:30:50 +02:00
akallabeth 1857a1dfea Updated changelog for #6938 2021-05-25 15:30:50 +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 f2254f0b09a5fbc424ef3876cb47b03d83963c38)
2021-05-25 15:30:50 +02:00
akallabeth c3df0be639
Updated changelog. (#6906) 2021-03-15 13:29:35 +01:00
akallabeth c32cc8812e Ensure canvas background is black before drawing
(cherry picked from commit 618afd7028219610ecf580d10eab6e38096b6408)
2021-03-15 10:43:54 +01:00
akallabeth 2612b32a72 Updated OpenSSL and android dependencies
(cherry picked from commit 54fa29dc2d2125578efe6c80b214f42b669a140d)
2021-03-15 10:43:54 +01:00
Armin Novak bed161ce50 Reverted winpr_BinToHexString argument change
keep API compatible.
2021-03-12 12:41:44 +01:00
akallabeth 7beda29158 Fixed CodeQL warnings
(cherry picked from commit 95a9e60827c91cb9b924d7ce3c220c30bd36907d)
2021-03-12 12:41:44 +01:00
Armin Novak 9e1e318512 Fix /monitor-list 2021-03-12 12:18:34 +01:00
Armin Novak 4c1267ccf2 Updated changelog 2021-03-12 11:22:12 +01:00
Armin Novak 87bb8fcc57 Fixed #6882: Use default output device on mac
(cherry picked from commit b09d2044e13577c68127effff3d3716c45f7571d)
2021-03-12 11:22:12 +01:00
akallabeth 9ba06525d6 Fixed mac issues with smartcard context cleanup (#6890)
(cherry picked from commit b8a8ae4622)
2021-03-12 11:22:12 +01:00