platform/upstream/freerdp.git
3 years agoFixed primitives test
Armin Novak [Mon, 7 Sep 2020 09:48:06 +0000 (11:48 +0200)]
Fixed primitives test

(cherry picked from commit b6f392215225a9aae9d257551505c169ac23e9ef)

3 years agoFixed _aligned_recalloc
Armin Novak [Mon, 7 Sep 2020 09:05:45 +0000 (11:05 +0200)]
Fixed _aligned_recalloc

(cherry picked from commit cad1dd39e23f45b36e4815129bdc3d99fcbd8c2b)

3 years agoFixed unit tests run under memory sanitizer
Armin Novak [Mon, 7 Sep 2020 08:42:28 +0000 (10:42 +0200)]
Fixed unit tests run under memory sanitizer

(cherry picked from commit 816e792e3f468eebf3c82416b9ef33637c9bd5cc)

3 years agoRemoved invalid check
akallabeth [Tue, 17 Nov 2020 08:04:52 +0000 (09:04 +0100)]
Removed invalid check

(cherry picked from commit e019ed65668b260542ee51b096585abb77354881)

3 years agoImplemented 2.2.1.17.1 Persistent Key List PDU Data, added checks
akallabeth [Thu, 19 Nov 2020 14:21:49 +0000 (15:21 +0100)]
Implemented 2.2.1.17.1 Persistent Key List PDU Data, added checks

* Implemented missing server side version of PDU (just skip data)
* Refactored read/write functions to properly check stream
  length/capacity and handle return values.

(cherry picked from commit ec3c333656b4d8a00ff278a70b52c11b18e2d643)

3 years agoFixed rdp_capability_set_start checks
akallabeth [Thu, 19 Nov 2020 13:47:08 +0000 (14:47 +0100)]
Fixed rdp_capability_set_start checks

(cherry picked from commit a13e0f1a08c44a4c6a6f037c9b849904a0a6c30e)

3 years agoCheck stream capacity in rdp_capability_set_finish
akallabeth [Thu, 19 Nov 2020 13:42:34 +0000 (14:42 +0100)]
Check stream capacity in rdp_capability_set_finish

(cherry picked from commit 6b0d2a2c3e05828248ef0286e764b9e578989ddf)

3 years agoFixed missing stream length checks.
akallabeth [Thu, 19 Nov 2020 13:23:03 +0000 (14:23 +0100)]
Fixed missing stream length checks.

(cherry picked from commit f7f8c3907d1c2e45c3545111ad3f3790e5037629)

3 years agoAdded data_pdu_type_to_string
akallabeth [Thu, 19 Nov 2020 12:42:28 +0000 (13:42 +0100)]
Added data_pdu_type_to_string

(cherry picked from commit b6b8d74521364bcf9c3ba2296d43e9fd3413e429)

3 years agoFixed sending of clipboard format request response
akallabeth [Thu, 26 Nov 2020 15:34:28 +0000 (16:34 +0100)]
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 2efb7d92745614a92c66b721205689a433248d31)

3 years agoFixed primitiveYUV unit test.
akallabeth [Tue, 12 Jan 2021 12:41:29 +0000 (13:41 +0100)]
Fixed primitiveYUV unit test.

(cherry picked from commit f357b9325fed388f0a6c86a403f5f8cc6188097f)

3 years agoIgnore alpha channel during color conversion.
akallabeth [Tue, 12 Jan 2021 08:41:09 +0000 (09:41 +0100)]
Ignore alpha channel during color conversion.

Most GFX graphics do not carry alpha data. Keep the original
alpha value unless specified otherwise.

(cherry picked from commit 115532ef5a71676a946c9d268dd1294daf99e52d)

3 years agoFixed SCardGetAttrib pbAttr=NULL argument
akallabeth [Mon, 25 Jan 2021 15:22:50 +0000 (16:22 +0100)]
Fixed SCardGetAttrib pbAttr=NULL argument

If fpbAttrIsNULL!=0 set pbAttr NULL on call to SCardGetAttrib

(cherry picked from commit 61b785a89b6a7dc4eab9f8c74d9afa2da6e5a8e6)

3 years ago[MAC] Keep original return value for client termination
Armin Novak [Fri, 22 Jan 2021 10:25:18 +0000 (11:25 +0100)]
[MAC] Keep original return value for client termination

(cherry picked from commit 9e63f35cc57da6ba79b0a76207848a85a75769a6)

3 years agoFixed missing check for fastpath input messages
akallabeth [Fri, 22 Jan 2021 07:24:16 +0000 (08:24 +0100)]
Fixed missing check for fastpath input messages

Input events are only allowed after a connection was established
(connection state is active)
This check aborts input sending when done before that.

(cherry picked from commit 102869f6a860140174da9dd3189babf6966c9149)

3 years agoDo not eliminate original error status.
akallabeth [Fri, 22 Jan 2021 08:32:51 +0000 (09:32 +0100)]
Do not eliminate original error status.

(cherry picked from commit 050a68fec901030c7428852f8f536ace055eb2f7)

3 years agoRefactored freerdp_client_settings_command_line_status_print_ex
akallabeth [Fri, 22 Jan 2021 07:40:03 +0000 (08:40 +0100)]
Refactored freerdp_client_settings_command_line_status_print_ex

Now returns 0 if help or version information was requested.

(cherry picked from commit 531dd81836f2c97fcfcfeabdb9671fb76409ce8d)

3 years agoclient: Fix exit codes for /help and similar option
Ondrej Holy [Thu, 21 Jan 2021 13:21:09 +0000 (14:21 +0100)]
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 3ee4cabcfad3a9ccc3c59be21245b57c17e7ae75)

3 years agochannels/smartcard: Fix race in channel cleanup
Martin Fleisz [Thu, 21 Jan 2021 09:10:44 +0000 (10:10 +0100)]
channels/smartcard: Fix race in channel cleanup

(cherry picked from commit 1155aade7f52fb594463370004a7a2766787d0d7)

3 years agoFixed const correctness of RECTANGLE_16 variable
Armin Novak [Mon, 18 Jan 2021 08:34:18 +0000 (09:34 +0100)]
Fixed const correctness of RECTANGLE_16 variable

(cherry picked from commit 9549d090ab849c405cb486fad6c9dd3867b28c45)

3 years agoFixed pcap capture function const correctness
Armin Novak [Mon, 18 Jan 2021 08:25:03 +0000 (09:25 +0100)]
Fixed pcap capture function const correctness

(cherry picked from commit 87e89bc719110ea369ae431e12f4e91f99cc9304)

3 years agoFix ColorFidelity use
Armin Novak [Mon, 18 Jan 2021 08:18:55 +0000 (09:18 +0100)]
Fix ColorFidelity use

(cherry picked from commit 8187ab7732dd0184e1123b1c39790a246f9912a6)

3 years agoCheck drive to hotplug for already being redirected
akallabeth [Fri, 15 Jan 2021 09:41:12 +0000 (10:41 +0100)]
Check drive to hotplug for already being redirected

some hotplug implementations report the same drive multiple times.
to avoid redirecting the same drive multiple times check if it is
already in the list before adding.

(cherry picked from commit 9e8d3fbbf5ad7bb75799a8aca9fafa9c2dcf7fd9)

3 years agoFix color fidelity issues with windows 7
Armin Novak [Wed, 13 Jan 2021 15:09:07 +0000 (16:09 +0100)]
Fix color fidelity issues with windows 7

(cherry picked from commit 57b58df80644f142067a489640edc40f006329a7)

3 years agoFixed problematic cast of integer mask to bool
Armin Novak [Wed, 13 Jan 2021 10:52:24 +0000 (11:52 +0100)]
Fixed problematic cast of integer mask to bool

(cherry picked from commit 8c353e9292f18e938b21f3369ba86d0f71359815)

3 years agoprimitives: Respect alpha values in YUV444 SSE pixel routine
Martin Fleisz [Mon, 11 Jan 2021 12:22:28 +0000 (13:22 +0100)]
primitives: Respect alpha values in YUV444 SSE pixel routine

(cherry picked from commit 9eaa820818571d23bd8604fbbc1ff9fa7c634967)

3 years agocore: Remove error code from string returned by rpc_error_to_string
Martin Fleisz [Thu, 7 Jan 2021 15:28:34 +0000 (16:28 +0100)]
core: Remove error code from string returned by rpc_error_to_string

This PR removes the error code from the error string returned by
rpc_error_to_string. The error code is passed into the function so it is
not necessary to append it to the returned string as well.

The PR also fixes the screwed formatting of the error code tables.

(cherry picked from commit c78566d2a239648087949dc4ae58e18093f8bf6c)

3 years agowinpr/clipboard: Also save lastWriteTime for FILEDESCRIPTORW
Pascal Nowack [Wed, 30 Dec 2020 01:17:43 +0000 (02:17 +0100)]
winpr/clipboard: Also save lastWriteTime for FILEDESCRIPTORW

Currently, when a local uri-list is converted into a FILEDESCRIPTORW
list, WinPR doesn't submit the last write time for each file.
The result of this is that the last write time of each file on the
other peer will have the current time and not the actual last write
time that is present on the peer, where the files were copied from.

Fix this by also writing the last write time in addition to the
FD_WRITESTIME flag.

(cherry picked from commit 9ba614a1e3314d9d3daa6e461e7d360c67c8d000)

3 years agox11: use correct contact flag names in xf_input_touch_state_string
kubistika [Sun, 27 Dec 2020 15:12:18 +0000 (17:12 +0200)]
x11: use correct contact flag names in xf_input_touch_state_string

(cherry picked from commit a94fe816a4dce96a26cd2ef284f525181d75c865)

3 years agoFix parsing of current keyboard locale
Martin Fleisz [Wed, 23 Dec 2020 13:44:31 +0000 (14:44 +0100)]
Fix parsing of current keyboard locale

(cherry picked from commit 2e59baa33c23cbd0e0ef6e432d8ef202caa34303)

3 years agoFixed definition of FILEDESCRIPTORW
akallabeth [Tue, 22 Sep 2020 10:58:41 +0000 (12:58 +0200)]
Fixed definition of FILEDESCRIPTORW

(cherry picked from commit 33df98f204ad72a34c1d0bb32859e3b8c030af7d)

3 years agoMerge pull request #6623 from akallabeth/stable-2.0-backports
Martin Fleisz [Mon, 11 Jan 2021 09:47:45 +0000 (10:47 +0100)]
Merge pull request #6623 from akallabeth/stable-2.0-backports

stable backports

3 years agoMerge pull request #6671 from akallabeth/stable-2.0-progressive
Martin Fleisz [Mon, 11 Jan 2021 09:36:52 +0000 (10:36 +0100)]
Merge pull request #6671 from akallabeth/stable-2.0-progressive

Backported #6670: Progressive decoding of subbanddiff

3 years agoBackported #6670: Progressive decoding of subbanddiff
akallabeth [Tue, 15 Dec 2020 16:00:22 +0000 (17:00 +0100)]
Backported #6670: Progressive decoding of subbanddiff

Properly decode tiles without subbanddiff so connections with
xfreerdp /gfx /v:<foo> work with ogon and the required progressive
codec is correct.

3 years agoFixed #6656: invalid read of proxy port.
akallabeth [Thu, 10 Dec 2020 06:38:13 +0000 (07:38 +0100)]
Fixed #6656: invalid read of proxy port.

(cherry picked from commit 3c237fd687c043d4488113d21292f1103bac9769)

3 years agoMoved clipboard hasHugeFileSupport to end of struct
akallabeth [Fri, 4 Dec 2020 13:09:28 +0000 (14:09 +0100)]
Moved clipboard hasHugeFileSupport to end of struct

(cherry picked from commit 0c96c3a71c1c74fb16131f4fa8266d2ae4d73367)

3 years agoFixed #6632
akallabeth [Thu, 3 Dec 2020 06:22:17 +0000 (07:22 +0100)]
Fixed #6632

(cherry picked from commit ceb0e8b4f1facb58849b2573fe60e3e512879a77)

3 years agoFix for mac mousewheel.
Keith Johnston [Tue, 6 Oct 2020 23:11:36 +0000 (16:11 -0700)]
Fix for mac mousewheel.

(cherry picked from commit 87a4a8484e65ab591ef815ed0700ab0c90994a77)
(cherry picked from commit c0ecee9d69533095bfdb3dbaf9e76747e5e3a7ab)

3 years agoRemoved obsolete connectErrorCode
Armin Novak [Fri, 11 Sep 2020 08:14:14 +0000 (10:14 +0200)]
Removed obsolete connectErrorCode

(cherry picked from commit 3b63903d3fbca0c1b1614aa93ea9ede955da692d)

3 years agoAllow autoreconnect for ERRINFO_GRAPHICS_SUBSYSTEM_FAILED
akallabeth [Thu, 26 Nov 2020 14:38:17 +0000 (15:38 +0100)]
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 552a7ca25f60e9a00585ec298c816911dcf71383)

3 years agochannels/audin: Request correct media type in audin channel on Mac
Martin Fleisz [Fri, 20 Nov 2020 13:09:37 +0000 (14:09 +0100)]
channels/audin: Request correct media type in audin channel on Mac

(cherry picked from commit 4a952977c17001b3bb8becdeb4547846ca2b392a)

3 years agoAdded permission checks for mac audio backend.
Armin Novak [Mon, 19 Oct 2020 10:08:13 +0000 (12:08 +0200)]
Added permission checks for mac audio backend.

(cherry picked from commit 0e0eb5f41fe5f80385e83132972f9c00cb0b61cb)

3 years agoFixed mac app termination and warnings
Armin Novak [Tue, 20 Oct 2020 07:08:37 +0000 (09:08 +0200)]
Fixed mac app termination and warnings

(cherry picked from commit a2e9f5efcb54a409ca67b2794ab20c391d732fe6)

3 years agoFixed remarks.
akallabeth [Thu, 15 Oct 2020 09:03:29 +0000 (11:03 +0200)]
Fixed remarks.

(cherry picked from commit c0284239a759f47670c164e0f3ae9b29676e07f3)

3 years agonew [orders]: BMF_24BPP support and some comments
Bernhard Miklautz [Wed, 15 Jul 2020 16:04:02 +0000 (18:04 +0200)]
new [orders]: BMF_24BPP support and some comments

* cached brush orders missed the BMF_24BPP documented case
  ([MS-RDPEGDI] 2.2.2.2.1.2.7)
* add some comments on secondary (brush) order details

(cherry picked from commit efdc99528f6fb6d56537a5420bfa8e735219eba0)

3 years agoDisable building OpenH264 in Andriod CI builds
Christian Plattner [Fri, 20 Nov 2020 12:28:16 +0000 (13:28 +0100)]
Disable building OpenH264 in Andriod CI builds

(cherry picked from commit f4b3ba92fc541488a9c1b9e251b42f8ea69ba08c)

3 years agoFix Android release target API level
Christian Plattner [Sun, 15 Nov 2020 09:51:57 +0000 (10:51 +0100)]
Fix Android release target API level

(cherry picked from commit 199e38c9b4df2109e07dfd795a0e7859243003a8)

3 years agoFix Android build paths
Christian Plattner [Sun, 15 Nov 2020 03:38:11 +0000 (04:38 +0100)]
Fix Android build paths

(cherry picked from commit 00173a0ef3a9ad5eb0511f800d910f463bd8bac1)

3 years agoFix #6565: streamline android build configuration
Christian Plattner [Sun, 15 Nov 2020 03:10:41 +0000 (04:10 +0100)]
Fix #6565: streamline android build configuration

(cherry picked from commit 0270932d96b6dd9a6c6c57e6c48eb5081fd122ef)

3 years agoAdded support for xwayland keyboard grab
akallabeth [Tue, 27 Oct 2020 13:17:37 +0000 (14:17 +0100)]
Added support for xwayland keyboard grab

(cherry picked from commit 896b7bc711f9e47620078507074960a68309576b)

3 years agoFix warning #6515
akallabeth [Fri, 16 Oct 2020 06:14:13 +0000 (08:14 +0200)]
Fix warning #6515

(cherry picked from commit 6d8f355633b7381745a55d48301e7f1e17d8efb4)

3 years agoreset codecs in gdi_pipeline_init
kubistika [Tue, 1 Dec 2020 11:35:38 +0000 (13:35 +0200)]
reset codecs in gdi_pipeline_init

(cherry picked from commit 42e63cbf9879048e36cb953fcebc24f3493e9568)

3 years agoremove unwanted log level set to debug in rfx
Fabio Fantoni [Sat, 28 Nov 2020 12:50:42 +0000 (13:50 +0100)]
remove unwanted log level set to debug in rfx

I saw on debian packages (that have -DWITH_DEBUG_ALL=ON) remotefx logs always to
debug without respect log-level and log-filters settings making diffult
debugging of issue on other parts.
After a search I found this that set loglevel to debug that akallabeth confirmed
is unwanted, this patch remove it.

Closes #6606

(cherry picked from commit f3e5ebe315f81f61688b79aa979c8d4ea89f8e87)

3 years agoFixed sound buffering issues with compressed formats
akallabeth [Thu, 26 Nov 2020 13:49:42 +0000 (14:49 +0100)]
Fixed sound buffering issues with compressed formats

(cherry picked from commit d9d22aa42207e4d8e23ec5337bce83f87726cd20)

3 years agoAdded CMake warning messages for expensive debug options
akallabeth [Thu, 26 Nov 2020 13:41:59 +0000 (14:41 +0100)]
Added CMake warning messages for expensive debug options

(cherry picked from commit d82c14c3d8d14e3e05d2b8fc2101043599fbe04f)

3 years agoDisable ios client until maintained.
akallabeth [Thu, 15 Oct 2020 08:23:44 +0000 (10:23 +0200)]
Disable ios client until maintained.

(cherry picked from commit f3c29852498c78b6b74227c8e7cf7fe3f08dc8d2)

3 years agoIncreased minimum ios deployment target.
akallabeth [Thu, 15 Oct 2020 07:49:02 +0000 (09:49 +0200)]
Increased minimum ios deployment target.

(cherry picked from commit a7b210d44854873a3218f987063d66e804b0e9b9)

3 years agoRefactored reading of optional order bytes
akallabeth [Mon, 12 Oct 2020 09:09:10 +0000 (11:09 +0200)]
Refactored reading of optional order bytes

(cherry picked from commit ef8f1fd9f0880bf786a0da3b567a4eb33d2bb230)

3 years agoFixed parsing of FastGlyph order.
akallabeth [Mon, 12 Oct 2020 08:29:30 +0000 (10:29 +0200)]
Fixed parsing of FastGlyph order.

(cherry picked from commit 0456fc307c2c6754f15e37de263f4465ec520975)

3 years agoCorrected clipboard capability mask
akallabeth [Fri, 2 Oct 2020 11:17:00 +0000 (13:17 +0200)]
Corrected clipboard capability mask

(cherry picked from commit e4243bb33cde0549fb04b112066d32545526f3f0)

3 years agoAdded clipboard CB_HUGE_FILE_SUPPORT_ENABLED flag
akallabeth [Tue, 29 Sep 2020 06:22:28 +0000 (08:22 +0200)]
Added clipboard CB_HUGE_FILE_SUPPORT_ENABLED flag

(cherry picked from commit f282c55c7a02caa80a53e88931725efedcae7085)

3 years agoFixes #5747: Only activate sound output device (#6467)
Felix Deimel [Tue, 8 Sep 2020 08:55:49 +0000 (10:55 +0200)]
Fixes #5747: Only activate sound output device (#6467)

* Fixes #5747: Only activate sound output device

(cherry picked from commit 19f74a269837d62dff0b3541aa8108159bc22064)

3 years agoFix #6461: Generate config.h after all subdirectories are parsed.
Armin Novak [Mon, 7 Sep 2020 06:21:16 +0000 (08:21 +0200)]
Fix #6461: Generate config.h after all subdirectories are parsed.

(cherry picked from commit 3310e388034d0271e06c175b78a99abf87011475)

3 years agoUse settings string setter to overwrite computername
akallabeth [Tue, 1 Sep 2020 09:15:44 +0000 (11:15 +0200)]
Use settings string setter to overwrite computername

(cherry picked from commit 4d7cddd7c64c75d824d8a1eb0babcfc71f0df8d4)

3 years agoIgnore NULL streams in StreamPool_Return
Armin Novak [Wed, 2 Sep 2020 08:09:48 +0000 (10:09 +0200)]
Ignore NULL streams in StreamPool_Return

(cherry picked from commit 6351885488c38327b4f59f3686d68ddd8dc0f745)

3 years agoFixed #6442: Use cmake to provide source directory for test pem
akallabeth [Mon, 24 Aug 2020 07:44:41 +0000 (09:44 +0200)]
Fixed #6442: Use cmake to provide source directory for test pem

(cherry picked from commit 70881d39578177d3229f01011f62021b1b069cb5)

3 years agoFixed short length for usb io control return.
akallabeth [Thu, 13 Aug 2020 11:51:38 +0000 (13:51 +0200)]
Fixed short length for usb io control return.

(cherry picked from commit 6f00308db78f27d6daee9a85ff3baec7cd8e8443)

3 years agoManually free up libusb transfer data to avoid double free
Armin Novak [Wed, 12 Aug 2020 08:28:21 +0000 (10:28 +0200)]
Manually free up libusb transfer data to avoid double free

(cherry picked from commit 6ce051759306219c49d4fb39a2bd9cc94c2c5afc)

3 years agoFixed double free on channel close in channel write.
Armin Novak [Wed, 12 Aug 2020 08:10:18 +0000 (10:10 +0200)]
Fixed double free on channel close in channel write.

(cherry picked from commit 81d59b2d47f1a68f4db97e2e4636d93be69892cc)

3 years agoFixed missing async user data extraction from libusb transfer
akallabeth [Tue, 11 Aug 2020 12:12:36 +0000 (14:12 +0200)]
Fixed missing async user data extraction from libusb transfer

(cherry picked from commit 786f6bbfe8ac63eb2e069a7b83b0a49b2a9a664b)

3 years agoFixed urbdrc server notification of channel close
Armin Novak [Mon, 10 Aug 2020 11:30:41 +0000 (13:30 +0200)]
Fixed urbdrc server notification of channel close

There was a recursion issue with usb device channel closing and
local redirected device removal.
If the local redirected device is removed due to hotplug events,
the device channel needs to be closed, which in turn checks if
the local device list contains the device. Ensure that the
channel close code is only executed when not called from the
channel side.

(cherry picked from commit 93ee13245ce7fe78ffbc9694bfac3da30844296a)

3 years agoRemoved channel close in USB channel done after channel is freed
akallabeth [Fri, 10 Jul 2020 08:49:25 +0000 (10:49 +0200)]
Removed channel close in USB channel done after channel is freed

(cherry picked from commit dbeaa614d6e369d3809e04be24f1d6b98e3d9e50)

3 years agoFixed access to user_data after free
akallabeth [Thu, 9 Jul 2020 10:27:17 +0000 (12:27 +0200)]
Fixed access to user_data after free

(cherry picked from commit 8c859575cfb0fc9e35d7b211993174af444ff780)

3 years agoFixed invalid buffer length and duplicated write function.
akallabeth [Thu, 9 Jul 2020 10:20:48 +0000 (12:20 +0200)]
Fixed invalid buffer length and duplicated write function.

(cherry picked from commit 54c92e78e6031d1e075625699e2d677af583716a)

3 years agoFixed urbdrc arraylist locking
akallabeth [Thu, 9 Jul 2020 09:47:06 +0000 (11:47 +0200)]
Fixed urbdrc arraylist locking

(cherry picked from commit e7533130a6bf08959670264e797487b00305e9f7)

3 years agoUnified streamID read/write
Armin Novak [Wed, 8 Jul 2020 16:18:51 +0000 (18:18 +0200)]
Unified streamID read/write

(cherry picked from commit 28bc636d5377b01936e161af9e94438a7e592f1d)

3 years agoReplace wHashTable with wArrayList in USB channel
Armin Novak [Wed, 8 Jul 2020 16:11:05 +0000 (18:11 +0200)]
Replace wHashTable with wArrayList in USB channel

The streamID is not guaranteed to be uniqe, so add all transfers
to a list and remove by checking pointers instead of the streamID

(cherry picked from commit 3ebc71abf3709871ca1609b9c99b7d234000da4a)

3 years agoAdded return checks for HashTable_Add
Armin Novak [Wed, 8 Jul 2020 08:26:34 +0000 (10:26 +0200)]
Added return checks for HashTable_Add

(cherry picked from commit ea8f93441d523e103746dfeceab98420c05e0bac)

3 years agoAdded duplicate initialization check for plugins.
Armin Novak [Mon, 10 Aug 2020 13:36:31 +0000 (15:36 +0200)]
Added duplicate initialization check for plugins.

(cherry picked from commit 75aab487e242f347868bd6c2ad5872d25a7c2c9a)

3 years agoRefactored rdg_read_http_unicode_string warning fixes
Armin Novak [Mon, 10 Aug 2020 14:39:49 +0000 (16:39 +0200)]
Refactored rdg_read_http_unicode_string warning fixes

(cherry picked from commit bfa07e701d25fc936c84ad36d58c6ab1a9a33ec9)

3 years agoRefactored socket warning fixes to be more readable.
Armin Novak [Mon, 10 Aug 2020 14:39:19 +0000 (16:39 +0200)]
Refactored socket warning fixes to be more readable.

(cherry picked from commit 57de0aebb5ee1d3458f74f9a98b99245719aa2f4)

3 years agoFixed warnings.
Armin Novak [Mon, 10 Aug 2020 10:26:46 +0000 (12:26 +0200)]
Fixed warnings.

(cherry picked from commit e50a8e09ee3feba4975c488618f5af350d851ad9)

3 years agoFixed missing input length check for color pointer.
Armin Novak [Mon, 10 Aug 2020 10:26:33 +0000 (12:26 +0200)]
Fixed missing input length check for color pointer.

(cherry picked from commit 47d02a76ce07cbfc655754a1ccfe79a9b6bc9357)

3 years agoFixed compilation warnings.
Armin Novak [Mon, 10 Aug 2020 10:04:02 +0000 (12:04 +0200)]
Fixed compilation warnings.

(cherry picked from commit 57b405ca265966fd3790cb3f30d0b0c073268e7c)

3 years agoFixed #6418: Warning due to invalid const qualifier
Armin Novak [Mon, 10 Aug 2020 09:47:52 +0000 (11:47 +0200)]
Fixed #6418: Warning due to invalid const qualifier

(cherry picked from commit 226b072af82ab7000d26a2bf76ee585098b27875)

3 years agoImprove NLA auth token debugging
Armin Novak [Mon, 10 Aug 2020 14:56:27 +0000 (16:56 +0200)]
Improve NLA auth token debugging

(cherry picked from commit 10ed4ec42204aa4f56c5a4d82732ced6359f088c)

3 years agoAdded log message for not implemented WinPR SSPI_WINPR functions.
Armin Novak [Mon, 10 Aug 2020 12:59:07 +0000 (14:59 +0200)]
Added log message for not implemented WinPR SSPI_WINPR functions.

(cherry picked from commit a9d9908bdedb8f4f3fbf8956ac96eb06375798e2)

3 years agoAdded log message for not implemented WinPR SSPI functions.
Armin Novak [Mon, 10 Aug 2020 12:57:39 +0000 (14:57 +0200)]
Added log message for not implemented WinPR SSPI functions.

(cherry picked from commit 2686200c3b95d03d5d81be124159fed2be744797)

3 years agoAdded log message for not implemented WinPR SSPI GSS functions.
Armin Novak [Mon, 10 Aug 2020 12:57:27 +0000 (14:57 +0200)]
Added log message for not implemented WinPR SSPI GSS functions.

(cherry picked from commit ef791456e3281aee75ac736f66b7444c9e12ca7b)

3 years agoAdded log message for not implemented Schannel functions.
Armin Novak [Mon, 10 Aug 2020 12:48:51 +0000 (14:48 +0200)]
Added log message for not implemented Schannel functions.

(cherry picked from commit 65819a721577fd997e159b059a3c1fe4c153cdd2)

3 years agoAdded log message for not implemented CREDSSP functions.
Armin Novak [Mon, 10 Aug 2020 12:43:37 +0000 (14:43 +0200)]
Added log message for not implemented CREDSSP functions.

(cherry picked from commit 7837f517e5771a33b4bd00cdf948706ae3d8aa55)

3 years agoAdded log message for not implemented NEGOTIATE functions.
Armin Novak [Mon, 10 Aug 2020 12:42:05 +0000 (14:42 +0200)]
Added log message for not implemented NEGOTIATE functions.

(cherry picked from commit 7d0e54e5f8d8009f8c5655b45dccdf425b9ac8d6)

3 years agoAdded log message for not implemented NTLM functions.
Armin Novak [Mon, 10 Aug 2020 12:41:20 +0000 (14:41 +0200)]
Added log message for not implemented NTLM functions.

(cherry picked from commit 58f471c7d9fa1ffcb03198ac919a05e1f13aee03)

3 years agoImprove NLA error code logging.
Armin Novak [Mon, 10 Aug 2020 12:35:40 +0000 (14:35 +0200)]
Improve NLA error code logging.

(cherry picked from commit 32c9a519dfec5ee7c7bf815298c9650e5a7aabff)

3 years agoMerge pull request #6405 from akallabeth/an-stable-2.0
Martin Fleisz [Wed, 5 Aug 2020 10:21:48 +0000 (12:21 +0200)]
Merge pull request #6405 from akallabeth/an-stable-2.0

stable 2.0 backports

3 years agoUse freerdp_settings_[s|g]et* api to access proxy vaiables.
akallabeth [Tue, 4 Aug 2020 06:49:46 +0000 (08:49 +0200)]
Use freerdp_settings_[s|g]et* api to access proxy vaiables.

Fixes #6414

(cherry picked from commit 44ea09e7ad0123b8486428c1ceaeeb96b5c01d35)

3 years agoAdd GatewayMessageType to public API
Martin Fleisz [Tue, 4 Aug 2020 07:11:41 +0000 (09:11 +0200)]
Add GatewayMessageType to public API

(cherry picked from commit 174f3257c9213e77663020d0b8a41220889848fd)

3 years agoImplement gateway message callback for Windows, Wayland and X11 clients
Martin Fleisz [Mon, 3 Aug 2020 10:06:08 +0000 (12:06 +0200)]
Implement gateway message callback for Windows, Wayland and X11 clients

(cherry picked from commit 2fe8e762d2b6765b486513159d18ffd98e267873)

3 years agogateway: Add processing of consent and service messages with HTTP gateway
Martin Fleisz [Thu, 30 Jul 2020 13:22:40 +0000 (15:22 +0200)]
gateway: Add processing of consent and service messages with HTTP gateway

(cherry picked from commit 130494e34a26d0b7065a2daddb56dd7b63241647)

3 years agoclang-format
Gluzskiy Alexandr [Mon, 27 Jul 2020 07:34:40 +0000 (10:34 +0300)]
clang-format

(cherry picked from commit 481f3b32f6f0fd7fdc304e192f5661e2fa2e4aa9)