4220 Commits

Author SHA1 Message Date
akallabeth
fba23b8ef7 Fixed formatting and source/destination length use
(cherry picked from commit f0ba8d7fb9c21b1134a3089eda661852b2861c0e)
2021-02-25 09:51:41 +01:00
mingfang
707828df8f libfreerdp: core: deep copy ServerCertificate
(cherry picked from commit b0783771055f55dccde85f8f5e50954ffca93383)
2021-02-25 09:51:41 +01:00
Armin Novak
0428ec9e21 Fixed issue with backported websockets support 2021-02-25 09:51:41 +01:00
Armin Novak
ee65815128 Added ConnectionStateChangeEvent for clients
Clients can now subscribe to connection state change events to
prevend data from being transmitted on sessions being redirected.

(cherry picked from commit 27f6df97783c6f18377f91c9e229cce2b7d6c694)
2021-02-25 09:51:41 +01:00
Michael Saxl
4516c2bc15 rdg websocket support
(cherry picked from commit 99489318f4832dbeca2130ae2c45f26c4e9a85bd)
2021-02-25 09:51:41 +01:00
Armin Novak
048aca5cce Compatibility changes
Renamed symbols and added wrappers to keep API compatible with
2.0 branch.
2021-02-25 09:51:41 +01:00
Armin Novak
377c61648f Do not recreate already initialized codecs
GFX and SurfaceBits commands share a common codec backend.
Recreating all codec context on GFX initialization will break
clients that are decoding SurfaceBits codec while having the GFX
channel initialized.

(cherry picked from commit 91a6ac131370c48a742b8bcc58ad188bb7ed60f8)
2021-02-25 09:51:41 +01:00
akallabeth
176893e6da Fixed default return for DrawOrderInfo
(cherry picked from commit 4587ef976c07a06f9fe751e2857bddea2a6e9a69)
2021-02-25 09:51:41 +01:00
Armin Novak
1c590a71e7 Added option to remap scancodes
(cherry picked from commit d7bf6553c558db64e5e3108b08f8ee1d394d1393)
2021-02-25 09:51:41 +01:00
Vic Lee
f2d09e6eb0 progressive: fix multiple regions in one gfx frame.
(cherry picked from commit 7f94095a0670f6d0bc19021e6e1439cf934edf52)
2021-02-25 09:51:41 +01:00
Martin Fleisz
856316f2c6 core: Enable network auto detection by default
(cherry picked from commit ce3edb00ef7471fc80b1991d126342aedc2d4c93)
2021-02-25 09:51:41 +01:00
Martin Fleisz
2b0958173a core: Remove connection type manipulation in gcc_write_client_core_data
Removes the changes to connection type in gcc_write_client_core_data and
adds some checks if network detection is enabled when receiving network
detection requests.

(cherry picked from commit 43825e364e9580eab08cae84dfd8021d16828730)
2021-02-25 09:51:41 +01:00
kubistika
609c54512c libfreerdp: core: add checks in gcc_write_client_data_blocks
(cherry picked from commit afa213b5e572416fca6049c748cda14d38f3b262)
2021-02-25 09:51:41 +01:00
Martin Fleisz
21bce4625c gateway: Fix consent/service message in legacy gateway code
(cherry picked from commit 00d56429211c2b1275e1122450e5bb87094c9678)
2021-02-25 09:51:41 +01:00
akallabeth
5e5e25284b Added OrderInfo callback for primary, seconardy and altsec orders
This allows gathering statistics about which orders have been
received

(cherry picked from commit f45f92f7bb4b560d1fedd723a353d8c1d0c73fbd)
2021-02-25 09:51:41 +01:00
Simon Tatham
aa9b644e3a Command-line option to choose an X selection.
I personally find it more convenient to have pasted data written to
the X11 PRIMARY selection, so that I can paste it with a fast middle-
button click, than to write to CLIPBOARD which typically needs a key
sequence or menu action.

This commit adds a command-line option to let me express that
preference: now I can say "/clipboard:use-selection:PRIMARY" on the
command line, which not only enables clipboard transfer but also says
which X selection I want it to talk to. The previous options
"+clipboard" and "-clipboard" are also still supported.

(cherry picked from commit 64948b96c4c4640078ce563b165a907251fd6f20)
2021-02-25 09:51:41 +01:00
akallabeth
552c18858a Fixed call to GetKeyboardLayout
(cherry picked from commit 8b8016ec21509fda5dfd182cb1d1fb186d272d7a)
2021-02-25 09:51:41 +01:00
akallabeth
43516beb70 Fixed support for huge files in clipboard
(cherry picked from commit f3dad4106a62cf29db0685221cd90b751e3ac2b1)
2021-02-25 09:51:41 +01:00
akallabeth
b9f00a97e3 Refactored RDG chunked data struct
(cherry picked from commit eafb4b8d5f4dd081606b4e6a69d92089993aae4b)
2021-02-25 09:51:41 +01:00
akallabeth
971341dd37 Fixed RDP gateway types and use after free
(cherry picked from commit 8c78e6742569936cb2bff59649888c93f3f3437f)
2021-02-25 09:51:41 +01:00
akarl10
b3be5e49b3 Implement chunked encoding for RDG_OUT_DATA
(cherry picked from commit cfb1a878a3b1c2c469c3d15e135f21f388c177b8)
2021-02-25 09:51:41 +01:00
odednoam
d9ca7c09f9 free previous value of password field from freerdp_assistance_parse_file_buffer
(cherry picked from commit 73dd40275fca9d009bcb07d4a734af146578f414)
2021-02-25 09:51:41 +01:00
odednoam
a8326f9d4a Fixed bug with assistance buffer parsing: freerdp_assistance_parse_file_buffer may be called directly, not necessarily from freerdp_assistance_parse_file, so password should be saved to the rdpAssistanceFile in freerdp_assistance_parse_file_buffer.
(cherry picked from commit 0dc9b18cdea8dce172fdc34be067b07a846594d0)
2021-02-25 09:51:41 +01:00
Nathan Loewen
d2b684ff40 let freerdp_image_scale() determine step size
(cherry picked from commit cba618115471a7072902aa137af5962f0e0c4c1e)
2021-02-25 09:51:41 +01:00
akallabeth
0195aac2ea Respect invalidRegion in progressive_compress
(cherry picked from commit 4a7ec674e601e3680161a0dfbda67dc07477eb8b)
2021-02-25 09:51:41 +01:00
akallabeth
1a4c1de6a8 Fixed progressive decoding without subbanddiff
(cherry picked from commit e3445eefab77c6666d760fa042f141c0a2d2965a)
2021-02-25 09:51:41 +01:00
akallabeth
84693e93b6 Cleaned up rfx API
(cherry picked from commit 25a8abc4eb0a6d6a115169b5f0f762e3308b4026)
2021-02-25 09:51:41 +01:00
Armin Novak
0615135c24 Fixed primitives test
(cherry picked from commit b6f392215225a9aae9d257551505c169ac23e9ef)
2021-02-25 09:51:41 +01:00
Armin Novak
cbf2a59dd9 Fixed unit tests run under memory sanitizer
(cherry picked from commit 816e792e3f468eebf3c82416b9ef33637c9bd5cc)
2021-02-25 09:51:41 +01:00
akallabeth
ff14073182 Removed invalid check
(cherry picked from commit e019ed65668b260542ee51b096585abb77354881)
2021-02-25 09:51:41 +01:00
akallabeth
812233e180 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)
2021-02-25 09:51:41 +01:00
akallabeth
db1287ddad Fixed rdp_capability_set_start checks
(cherry picked from commit a13e0f1a08c44a4c6a6f037c9b849904a0a6c30e)
2021-02-25 09:51:41 +01:00
akallabeth
104f3f043e Check stream capacity in rdp_capability_set_finish
(cherry picked from commit 6b0d2a2c3e05828248ef0286e764b9e578989ddf)
2021-02-25 09:51:41 +01:00
akallabeth
51bf892909 Added data_pdu_type_to_string
(cherry picked from commit b6b8d74521364bcf9c3ba2296d43e9fd3413e429)
2021-02-25 09:51:41 +01:00
akallabeth
47d8505bd0 Fixed primitiveYUV unit test.
(cherry picked from commit f357b9325fed388f0a6c86a403f5f8cc6188097f)
2021-02-25 09:51:41 +01:00
akallabeth
9eeb64ed9f 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)
2021-02-25 09:51:41 +01:00
akallabeth
bd0558c47f 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)
2021-02-25 09:51:41 +01:00
Armin Novak
8d62ec233d Fixed const correctness of RECTANGLE_16 variable
(cherry picked from commit 9549d090ab849c405cb486fad6c9dd3867b28c45)
2021-02-25 09:51:41 +01:00
Armin Novak
5ea5980b10 Fixed pcap capture function const correctness
(cherry picked from commit 87e89bc719110ea369ae431e12f4e91f99cc9304)
2021-02-25 09:51:41 +01:00
Armin Novak
847de7f4ae Fix ColorFidelity use
(cherry picked from commit 8187ab7732dd0184e1123b1c39790a246f9912a6)
2021-02-25 09:51:41 +01:00
Armin Novak
605e89a38d Fix color fidelity issues with windows 7
(cherry picked from commit 57b58df80644f142067a489640edc40f006329a7)
2021-02-25 09:51:41 +01:00
Armin Novak
a4048b7d11 Fixed problematic cast of integer mask to bool
(cherry picked from commit 8c353e9292f18e938b21f3369ba86d0f71359815)
2021-02-25 09:51:41 +01:00
Martin Fleisz
d3202497ba primitives: Respect alpha values in YUV444 SSE pixel routine
(cherry picked from commit 9eaa820818571d23bd8604fbbc1ff9fa7c634967)
2021-02-25 09:51:41 +01:00
Martin Fleisz
ce61bc41cb 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)
2021-02-25 09:51:41 +01:00
Martin Fleisz
76923c7890 Fix parsing of current keyboard locale
(cherry picked from commit 2e59baa33c23cbd0e0ef6e432d8ef202caa34303)
2021-02-25 09:51:41 +01:00
Martin Fleisz
270e40e92f
Merge pull request #6623 from akallabeth/stable-2.0-backports
stable backports
2021-01-11 10:47:45 +01:00
akallabeth
db20214c1f 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.
2020-12-15 17:00:22 +01:00
akallabeth
6522361760 Fixed #6656: invalid read of proxy port.
(cherry picked from commit 3c237fd687c043d4488113d21292f1103bac9769)
2020-12-10 07:39:41 +01:00
Armin Novak
e4b30a5cb6 Removed obsolete connectErrorCode
(cherry picked from commit 3b63903d3fbca0c1b1614aa93ea9ede955da692d)
2020-12-02 14:17:54 +01:00
akallabeth
67d404c783 Fixed remarks.
(cherry picked from commit c0284239a759f47670c164e0f3ae9b29676e07f3)
2020-12-02 09:43:22 +01:00