Commit Graph

14969 Commits

Author SHA1 Message Date
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
Armin Novak
63dfaa4e5e Disable execinfo support if only header detected
Some implementations (e.g. Android with API < 33) provide the
execinfo.h header file, but do not define the backtrace functions
expected. Disable the support for execinfo backtrace in such a case

(cherry picked from commit 09275bf4c7)
2022-09-22 13:48:36 +02:00
Armin Novak
ee79164b86 Enable PKCS11
(cherry picked from commit f1569c5a7f)
2022-09-22 13:48:36 +02:00
Armin Novak
9584e53133 Install required flathub remote and sdk automatically
(cherry picked from commit f013ebc49a)
2022-09-22 13:48:36 +02:00
Armin Novak
82f292a1c7 Add flatpak bundle build script
* Builds the flatpak manifest (uses a temporary directory for
  intermediate files)
* Bundles the flatpak and writes it to the current directory

(cherry picked from commit 4a5d0df954)
2022-09-22 13:48:36 +02:00
Armin Novak
388abfa24e Updated flatpak manifest
* Use current dependencies
* Bundle OpenSSL 1.1.1 for windows  XP/vista/xp compatibility
* Build currently checked out FreeRDP instead of origin/master

(cherry picked from commit 541e8f88f6)
2022-09-22 13:48:36 +02:00
Pascal Nowack
246ac55d9c Update changelog 2022-09-14 08:45:06 +02:00
Armin Novak
96955d346f Fix #8186: AVCodec split version defines in two files... 2022-09-14 08:45:06 +02:00
David Fort
6eb3a26a7c
Backport: fix test create process (#8112)
* winpr: fix unitary test when CreateProcess is CreateProcessW

As the second argument of CreateProcessW is modified to split with spaces and so
this can not be a const arg.

* winpr: removed a C++ style comment
2022-08-05 08:32:40 +02:00
Bernhard Miklautz
e3fc97feb5
Release 2.8.0 (#8096) 2022-07-28 15:12:43 +02:00
Siva Gudivada
7a2215fd40
Backport TLS1.2 enforcement and version control from master to stable2.0 (#8094)
* Add a new command line arg to enforce tls1.2

* Add better explanation of FreeRDP_EnforceTLSv1_2

(cherry picked from commit ce2e3ab0c7)

* Regenerated settings helpers

* backport prev cherry-pick

* Cleanup tls_prepare

* TLS version control

* added settings for minimal and maximal TLS versions supported
* refactorisation of the force TLSv1.2 setting

* cleanup from prev cherry-pick

* updated change log

Co-authored-by: akallabeth <akallabeth@posteo.net>
Co-authored-by: David Véron <david.veron@rubycat.eu>
2022-07-28 14:12:12 +02:00
akallabeth
26a83e6ccd
Moved clipboard utils to core library, fixes #6760 (#7752)
* Moved clipboard utils to core library, fixes #6760

(cherry picked from commit 4fb686d40f)

* Fixed compilation warnings in cliprdr_utils

(cherry picked from commit 8b7a086411)

* Fixed backport API mismatch

* Added C++ guards to header

(cherry picked from commit 7626a2ce6a)
2022-07-28 13:45:57 +02:00
Pascal Nowack
f344d1d481
[stable-2.0] codec/progressive: Fix wrong usage of subband diffing flag (#8077)
* codec/progressive: Fix wrong usage of subband diffing flag (#8076)

Currently, all Calista Progressive encoded streams contain tile
artifacts, when the RFX_SUBBAND_DIFFING is used, but not the
RFX_DWT_REDUCE_EXTRAPOLATE flag.
The reason is the wrong usage of the context and tile flags.
The RFX_SUBBAND_DIFFING flag should have no actual impact on the
decoder itself.
Especially, it does not affect the band sizes within a 64x64 tile.
The RFX_DWT_REDUCE_EXTRAPOLATE flag, on the other hand, MUST have an
effect on the band sizes.
However, FreeRDP currently uses the RFX_SUBBAND_DIFFING flag when
decoding a component to determine whether the Reduce-Extrapolate method
is used, resulting in tile artifacts, when that method was actually not
used.
The current behaviour did not result in tile artifacts with the MS
Windows RDS, as that server always sets both flags.

So, fix this issue by using the correct flag, when decoding a tile.

* Update changelog
2022-07-15 08:52:02 +02:00
Armin Novak
88c09ff697 Fixed xf_Pointer_GetCursorForCurrentScale double free 2022-07-07 15:07:15 +00:00
Pascal Nowack
ea3c4174c7 Update changelog 2022-07-07 13:47:25 +00:00
Pascal Nowack
28d968a4d6 client/X11: Relieve CLIPRDR filename restriction when possible
Microsoft Windows imposes strict filename restrictions on its platform.
As RDP is developed by Microsoft and the RDS in MS Windows is typically
used as remote desktop server for the RDP protocol, these filename
restrictions are also enforced in WinPR, when copy-pasting files over
the clipboard.
However, in some connections no peer on MS Windows is involved and in
these situations, these filename restrictions are just an annoyance.

With a recent API addition in WinPR, it is now possible to override the
callback, where the filename is checked, whether it is valid.
So, use this new API to relieve the filename restriction, when the
connected remote desktop server is not on MS Windows.
2022-07-07 13:47:25 +00:00
Pascal Nowack
5f9c519f03 winpr/clipboard: Allow overriding ValidFileNameComponent call
When using the wClipboard API, the connected peer might not be on the
Windows platform, where further filename restriction exists.
As a result, it is currently not possible to use the wClipboard API,
when intending to allow filenames, containing characters like ':'.

So, add a callback to the wClipboardDelegate, which is set to the
ValidFileNameComponent call by default.
This callback can be overridden by the API user, when it is known, that
there is no need to impose very strict filename restrictions.
2022-07-07 13:47:25 +00:00
Pascal Nowack
9a21f79ae1 freerdp/peer: Add APIs to get OS major and minor type strings 2022-07-07 13:47:25 +00:00
akallabeth
e231a848fe Updated changelog 2022-07-05 14:48:17 +02:00
akallabeth
a8a8c101bf Removed ALAW/ULAW from alsa/oss/pulse backends
The codec does not work reliably with some hardware.

(cherry picked from commit 7b02aba636)
2022-07-05 14:48:17 +02:00
akallabeth
e535601d27 Updated pointer debug log messages
(cherry picked from commit 73251193c2)
2022-07-04 16:15:09 +02:00
akallabeth
ecb04b781a Update scaled pointer on FocusIn
(cherry picked from commit 5f0d4fb9f7)
2022-07-04 16:15:09 +02:00
akallabeth
cbafee032f Fixed xf_Pointer_GetCursorForCurrentScale check
(cherry picked from commit a993db8e59)
2022-07-04 16:15:09 +02:00
akallabeth
600ec7a309 Added missing include for ainput server channel
(cherry picked from commit ae49581673)
2022-07-04 08:20:38 +02:00