Commit Graph

14992 Commits

Author SHA1 Message Date
Armin Novak
6d9f7d7616 [channels,printer] Fixed reference counting 2022-11-22 08:27:20 +01:00
Steve Pronovost
8f5fa9aeec Fix connection negotiation with mstsc/msrdc
mstsc/msrdc includes an optional correlation info
(RDP_NEG_CORRELATION_INFO) during connection negotiation. This confuses
FreeRDP which interpret this as a cookie and eventually fails the
negotiation, preventing a successful connection to these RDP client.

This commit addresses 3 things.

1) When processing connection token or cookie, skip if the remaining
bytes are neither.
2) After processing the RDP_NEG_REQ info, skip the optional correlation
info (RDP_NEG_CORRELATION_INFO) if one is present.
3) Allow local connection without server certificate when the client
inherently trust the server.

(cherry picked from commit 592f8d95be)
2022-11-21 10:13:36 +01:00
Armin Novak
fa8e1b1c76 changelog 2022-11-16 15:06:20 +01:00
Armin Novak
cce52d2cc1 Updated version to 2.9.0 2022-11-16 15:06:20 +01:00
Joan Torres
4001a6d0cd Add support to send a ServerRedirection PDU.
(cherry picked from commit e35b032121)
2022-11-16 15:06:20 +01:00
Armin Novak
30a056835f [client,x11] Fixed #8397: Clamp scaled cursor sizes
If a cursor is scaled, ensure the result size is at least 1x1 pixel
wide.

(cherry picked from commit 0ebc468d12)
2022-11-16 15:06:20 +01:00
Armin Novak
330e09ae12 [capabilities] properly set RemoteFxOnly
The check was inverted, setting the flag properly now

(cherry picked from commit 73a722ec8e)
2022-11-16 11:10:41 +01:00
akallabeth
027424c2c6 Fixed path validation in drive channel
Check that canonical path is a subpath of the shared directory

(cherry picked from commit 844c94e6d0)
2022-11-14 09:28:36 +01:00
akallabeth
0a62aba0ca [winpr, crt] Added wcsstr implementation
(cherry picked from commit 6c034ba6117a4efc9266e845fe9a9a92ed4ee61d)
2022-11-14 09:28:36 +01:00
akallabeth
3ac3a2ce9e [winpr, crt] Fix wcs*cmp and wcs*len checks
(cherry picked from commit b60fac1a0470fe83e8d0b448f0fd7e9e6d6a0f96)
2022-11-14 09:28:36 +01:00
akallabeth
5101fbbba3 Added function _wcsncmp
* Compare WCHAR strings up to n characters

(cherry picked from commit 8178ed26a459356ece17414c6e871a7e0735a4ec)
2022-11-14 09:28:36 +01:00
akallabeth
6655841cf2 Fixed missing stream length check in drive_file_query_directory
(cherry picked from commit 4e4bb79795d6ac85473fb7a83e53ccf63d204b93)
2022-11-14 09:28:36 +01:00
akallabeth
e865c24efc Added missing length checks in zgfx_decompress_segment
(cherry picked from commit 64716b335858109d14f27b51acc4c4d71a92a816)
2022-11-14 09:28:36 +01:00
akallabeth
ff82ae8434 Added missing length check in urb_control_transfer
(cherry picked from commit ce838e2477cb8173ea5e98f35ad55ff41ea5117d)
2022-11-14 09:28:36 +01:00
akallabeth
11555828d2 Fixed missing input buffer length check in urbdrc
(cherry picked from commit 497df00f741dd4fc89292aaef2db7368aee45d0d)
2022-11-14 09:28:36 +01:00
akallabeth
68c6a8c187 Ensure urb_create_iocompletion uses size_t for calculation
(cherry picked from commit de7e0f062ee53d00b4a966a43855a716e3478150)
2022-11-14 09:28:36 +01:00
akallabeth
80adde17dd Fixed division by zero in urbdrc
(cherry picked from commit 731f8419d04b481d7160de1f34062d630ed48765)
2022-11-14 09:28:36 +01:00
akallabeth
41185a28a0 updated changelog 2022-11-07 10:20:42 +01:00
akallabeth
af69f8c25d Added proxy input state sync (#7282)
The proxy server component might receive input related events
before the proxy client has established the connection to the
target machine.
With this change, the current keyboard state is cached and sent
to the target when it is ready. All input events received before
the target is ready are discarded.

(cherry picked from commit 4d23bc9372)
2022-11-07 10:20:42 +01:00
akallabeth
d859574f8c Expose CONNECTION_STATE via public API
* Expose type CONNECTION_STATE
* Add getter freerdp_get_state
* Add helper freerdp_state_string

(cherry picked from commit 32b3f54bb3)
2022-11-07 10:20:42 +01:00
Armin Novak
b14fe5af7b Fixed compile error for old openssl
(cherry picked from commit f3082b3798)
2022-10-27 10:50:01 +02:00
akallabeth
3adcd2d471 Updated changelog 2022-10-24 12:01:25 +02:00
Armin Novak
7cfd97f531 Added support for audin version 2
(cherry picked from commit 6f62d30bfd)
2022-10-24 12:01:25 +02:00
fifthdegree
fd092b6d70 Check for NULL pointer in winpr_Digest_Free
(cherry picked from commit a806da90ed)
2022-10-24 12:01:25 +02:00
akallabeth
73c9755743 Added missing return in winpr_Digest_New
(cherry picked from commit 0ea1957da5)
2022-10-20 21:28:58 +02:00
Armin Novak
525a7c8d16 Added missing include
(cherry picked from commit d48cd82ccd)
2022-10-20 08:29:42 +02:00
Armin Novak
711176ccac Improve OpenSSL provider loading
* Added log messages for failure to load a provider
* Add code to clean up loaded providers on shutdown

(cherry picked from commit 4db4b4cb82)
2022-10-20 08:29:42 +02:00
akallabeth
a4f2d1a4aa Updated changelog 2022-10-19 09:19:00 +02:00
akallabeth
bda64c56ae Added replacement HMAC-MD5 implementation
(cherry picked from commit cd7dcf71bf)
2022-10-19 09:19:00 +02:00
akallabeth
276690a187 Added replacement MD5 implementation
(cherry picked from commit e6bb4fa29a)
2022-10-19 09:19:00 +02:00
akallabeth
4b2260c546 Added replacement MD4 implementation
(cherry picked from commit 095f1dca62)
2022-10-19 09:19:00 +02:00
akallabeth
af053892ae Updated TestCryptoHash
Do multiple updates to hashes to better test implementation

(cherry picked from commit cfca31d384)
2022-10-19 09:19:00 +02:00
Bernhard Miklautz
0ad3f49f0e
Merge pull request #8302 from akallabeth/stable_release_2_8_1
Stable release 2 8 1
2022-10-12 12:58:39 +02:00
Armin Novak
36247e3a48 Updated version to 2.8.1 2022-10-12 12:21:22 +02:00
Armin Novak
266e5816c0 Android build script updatee
* Remove JPEG build support (deprecated)
* Add sha256 check to tar/git checkout
* Update default dependency versions

(cherry picked from commit 7f13922370)
2022-10-12 09:00:40 +02:00
akallabeth
acd44ef292 Removed ALAW/ULAW from supported backend formats
pulse/alsa/oss do not reliably work with ALAW/ULAW codecs with all
hardware available.
Since these formats are poor quality anyway, deactivate them for
audin channel.

(cherry picked from commit c3e8720c87)
2022-10-12 09:00:40 +02:00
akallabeth
b2447efd44 Changelog 2022-10-07 13:27:47 +02:00
Felix Deimel
2d4b0858d9 Fixes https://github.com/FreeRDP/FreeRDP/issues/7408
(cherry picked from commit a8e8069503)
2022-10-07 13:27:47 +02:00
akallabeth
74a54407e9 changelog 2022-10-07 10:53:13 +02:00
James Fu
f1807e6a1c Send resize on window state change
(cherry picked from commit abbd1cd380)
2022-10-07 10:53:13 +02:00
Armin Novak
114fdfc4b9 Fix #8176: Check fullscreen state and not setting
Timer based dynamic resolution updates are disabled in fullscreen
state. Check current value and not (permanent) setting

(cherry picked from commit a47dcd3705)
2022-10-07 10:53:13 +02:00
akallabeth
5a6271cf5c Fixed TSMF tsmf_gstreamer_set_format length checks
ExtraDataSize of format was not checked for expected minimum
length

(cherry picked from commit 136d92bb46)
2022-10-06 16:06:21 +02:00
akallabeth
55db582434 Fixed TSMF tsmf_read_format_type length checks
ExtraDataSize of format was not checked for expected minimum
length

(cherry picked from commit dc88cfc725)
2022-10-06 16:06:21 +02:00
akallabeth
6f660e73aa Fixed TSMF tsmf_ffmpeg_set_format length checks
ExtraDataSize of format was not checked for expected minimum length

(cherry picked from commit b7c0b43a37)
2022-10-06 16:06:21 +02:00
akallabeth
779a35bf62 Fixed missing input data length check
tsmf_ifman_exchange_capability_request did not check if the input
data stream actually contained the amount of bytes requested to
copy.

(cherry picked from commit 4182bfbf38)
2022-10-06 16:06:21 +02:00
akallabeth
b263ce67a3 Fixed tsmf ffmpeg context extra data size checks
tsmf_ffmpeg_init_stream did not abort if the video format ExtraDataSize
was not sufficiently large to satisfy expectations.

(cherry picked from commit 5beef2c5e6)
2022-10-06 16:06:21 +02:00
akallabeth
be793c3bb7 Fixed missing length check in video channel
Data received in video redirection channel was not checked for
proper length.

(cherry picked from commit eeffd1050e)
2022-10-06 16:06:21 +02:00
akallabeth
60aac2abf0 Fix length checks in parallel driver
The length requested was not checked against the length read from
the port.

(cherry picked from commit 094cc5a459)
2022-10-06 16:06:21 +02:00
Armin Novak
09315478ed Updated changelog 2022-09-22 13:48:36 +02:00
Mike Gabriel
5418392be6 winpr/{libwinpr/thread/thread.c,include/winpr/thread.h}: Keep DumpThreadHandles as a symbol even if WITH_DEBUG_THREADS is OFF.
(cherry picked from commit 8ab9809e8b)
2022-09-22 13:48:36 +02:00