14603 Commits

Author SHA1 Message Date
akallabeth
3825b4cd4e Create codeql-analysis.yml
(cherry picked from commit 2b676bf1e7de111cd63c7f77cbbbf1d299b3a8fd)
2021-02-25 09:51:41 +01:00
akallabeth
7b6ea77613 Fixed smartcard crash on error return (invalid length) 2021-02-25 09:51:41 +01:00
Armin Novak
13494bc6de Fixed #6821: _stricmp does not like NULL strings
(cherry picked from commit 7b211e525892f056c18c827b9f56ccc24d6ae5f3)
2021-02-25 09:51:41 +01:00
Armin Novak
5eb9c11524 Updated windows time zones 2021-02-11
(cherry picked from commit 2e5c09f20984654b3cc9a5ec32683dcff0b25df6)
2021-02-25 09:51:41 +01:00
akallabeth
dc179867cc 2.0 compatibility for rdpinput flag debug function 2021-02-25 09:51:41 +01:00
akallabeth
e5f92ba550 Fixed #6712: Use window size from settings
The xfc->window might be NULL (remote app, ...)

(cherry picked from commit 6ecd440658eee7dbd0a07c1366946046746d0b8d)
2021-02-25 09:51:41 +01:00
Fabio Fantoni
689ca72285 Minor typo fix
From debian packages patch done by Mike Gabriel
<mike.gabriel@das-netzwerkteam.de>

(cherry picked from commit 5c408e080e66c917ec4aeaaadf324b9665ba992a)
2021-02-25 09:51:41 +01:00
Marc-André Moreau
3047a73744 freerdp-client: don't enable vmconnect mode based on PCB field presence in .RDP file
(cherry picked from commit 4e14e7d41e10f39de9a0fafe53461e9fb5ebc765)
2021-02-25 09:51:41 +01:00
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
9e3dce0264 Compatibility commit for RDPEI API 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
ab1bee07f4 Updated changelog 2021-02-25 09:51:41 +01:00
Pascal Nowack
0f4ca4c3fb clients: Use the correct wheel rotation value
For the negative scrolling direction, RDP uses the two's complement,
instead of the positive wheel value with the negative flag.
xfreerdp currently uses the positive wheel value in addition to the
negative flag, which results in a wrong wheel value on the server side
(136 instead of 120).

Fix this, by using the correct wheel rotation value, which is in the
two's complement.

(cherry picked from commit 1087a5e1a64cb591efb44b67cfa5a97a7f40aaf7)
2021-02-25 09:51:41 +01:00
akallabeth
97327cbf33 Fixed #6801: Delay sending of resolution change
Changed the logic of the disp channel to wait for 800ms after a
ConfigureNotify before sending the new resolution.
The problem fixed with this patch is the following:
1.  Resize the window with the mouse
2.  ConfigureNotify triggers a resize notification
3.  The server resizes to the desired resolution
3a. More ConfigureNotify events are generated
4.  The local window resize to the new resolution triggers another
    ConfigureNotify

a. Depending on the timing (sending is already rate limited) the
   events from 3a and 4 will make the size of the window jump
b. Very fast resizing will pick a random resolution from the
   sequence of ConfigureNotify events as the final resolution

(cherry picked from commit d3ed42a7994975098973c5f29f1ab98f7bdac2bf)
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
akallabeth
fcfb8d0283 Fixed a ConvertToUnicode issue and added a unit test
(cherry picked from commit e15684cb1477e2fac6170835ac9132443dc79970)
2021-02-25 09:51:41 +01:00
Armin Novak
8a7a73e37b Always return data on SCardGetStatusChange
If the call fails just return empty data for each reader.

(cherry picked from commit f0317a5e0fdc31f7f5f014e90e2b349fc7824bf2)
2021-02-25 09:51:41 +01:00
akallabeth
b3dac8e8eb Fixed issue with GetAttr where the result buffer was not allocated
(cherry picked from commit 38ae006db981c5bb031d5fbd957d99d2fef5c14a)
2021-02-25 09:51:41 +01:00
akallabeth
aef2a82144 Fixed GetAttrib return length
(cherry picked from commit 5342f351ea441c1c3c1b34af216d583051e84fdc)
2021-02-25 09:51:41 +01:00
akallabeth
0bcbc93cee Fixed smartcard_unpack_reader_state, allow empty names
(cherry picked from commit 2757b5d6c08e05154d5968c2fc04f7b15a7ea3d3)
2021-02-25 09:51:41 +01:00
akallabeth
3611aaadf7 Fixed SCardTransmit return
(cherry picked from commit ad4694f7a02cb9295795b6c5d07fa9bdb1614d2b)
2021-02-25 09:51:41 +01:00
akallabeth
12737094ee Fixed SCardState wrapper
(cherry picked from commit e5a1dae34f018d45049304a10a22658d853b1cc0)
2021-02-25 09:51:41 +01:00
akallabeth
58fa12d795 Unified smartcard call data structs
(cherry picked from commit 2674d3b2f3700e0b4bc859d41b4506d8c28d2d95)
2021-02-25 09:51:41 +01:00
akallabeth
f85bbd79d4 Unified smartcard handle converstion
(cherry picked from commit 69d33da061ff15d2c016de1569b54ca68a578f05)
2021-02-25 09:51:41 +01:00
akallabeth
dd3164f3c9 Fixed various return values in case of result != SCARD_S_SUCCESS
(cherry picked from commit e32305dd3a09312cc04e428bb7d2cb5395be1fdd)
2021-02-25 09:51:41 +01:00
akallabeth
fd529c826d Fixed GetAttrib call
(cherry picked from commit 99d228251c73c3c33bc1119ceb7d084f77d80076)
2021-02-25 09:51:41 +01:00
akallabeth
de08784068 refactored smartcard allocations
(cherry picked from commit 27ba319c89ab46431b0df1b9ad41daf68b7eae6f)
2021-02-25 09:51:41 +01:00
akallabeth
131d38c2da Fixed SCard debug WCHAR string lengths
(cherry picked from commit a9409221d073e8665a1f27da764d9d042f557e0f)
2021-02-25 09:51:41 +01:00
akallabeth
df49ebf244 Fixed double free in PCSC_SCardGetAttrib_FriendlyName
(cherry picked from commit c1575fa99aa9fae335cf6b0f4107c0e12aa7d931)
2021-02-25 09:51:41 +01:00
Armin Novak
2f95316fc7 Reordered UWAC events to keep compatibility 2021-02-25 09:51:41 +01:00
Armin Novak
ee27c59570 Changelog for 2.3.0 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
5e89baddd9 Increased version to 2.3.0 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
akallabeth
66f13a3ea4 Fix length return for SCARD_ATTR_VENDOR_NAME
(cherry picked from commit cf2d26dbbd7491d2039c6bb13cd4cc0130f50cd6)
2021-02-25 09:51:41 +01:00
Armin Novak
7cb3753c08 Fixed PCSC_SCardGetAttrib wrapper
(cherry picked from commit 17d8267de70719d1ac7357bc71d177bf36c6ad86)
2021-02-25 09:51:41 +01:00
akallabeth
5a052b7515 Dereference ppbAttr as argument for SCardGetAttrib
(cherry picked from commit 1efcd605e02bdbe54121d9f1da85d6874c26f59e)
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
Armin Novak
d1250f9443 Compatibility commit
* Adds compatibility defines for 2.2.0
* Reorders some newe fields in structs to improve compatibility
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
0140454
b54e32261a libuwac: Fix code format
(cherry picked from commit 706b6ddbb12a22986a1a86171d4c19775f4a5d6f)
2021-02-25 09:51:41 +01:00
0140454
ed96ca820f Sync numlock, capslock state in Wayland
(cherry picked from commit b56a3691ca35a7f55e31998c55a40a9da9d0d745)
2021-02-25 09:51:41 +01:00
0140454
09268fb27b libuwac: Add UwacKeyboardModifiersEvent
(cherry picked from commit b4ffc2f8b3792f9781559ebe4a094511c3b46170)
2021-02-25 09:51:41 +01:00
0140454
56157f4dc2 Dont' commit surface in configure handler
(cherry picked from commit 256b94450cc921560dd9842fadc45edbeb85e760)
2021-02-25 09:51:41 +01:00
0140454
ea30b6988e Process close event
(cherry picked from commit f61744a062255eaaaaec21c9192666f55559e26e)
2021-02-25 09:51:41 +01:00
akallabeth
2647eefa83 Added wayland discrete axis events for mouse wheel
the discrete axis event gives changes in steps just like the
xfreerdp version uses. This way scrolling can be implemented
consistent with the behaviour of xfreerdp

(cherry picked from commit 2cce37a82a08b0a7c24302a6819371218dea1ec6)
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