platform/upstream/freerdp.git
2 years agoApply tizen packaging 51/261651/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211029.012802 accepted/tizen/unified/20210818.215302 submit/tizen/20210818.092309 submit/tizen_6.5/20211028.163401 tizen_6.5.m2_release
Junkyeong, Kim [Thu, 22 Jul 2021 05:29:21 +0000 (14:29 +0900)]
Apply tizen packaging

Change-Id: I4b91fea9ecebcc326c90545ec038b5224a590fb6
Signed-off-by: Junkyeong, Kim <jk0430.kim@samsung.com>
2 years agoFixed #7164: android clipboard string termination upstream upstream/2.3.2
Armin Novak [Mon, 12 Jul 2021 06:48:00 +0000 (08:48 +0200)]
Fixed #7164: android clipboard string termination

(cherry picked from commit a6990ec188ebc6ca971700d9c445aa4c6ec11349)

2 years agoSwitched usage to AndroidX libraries.
Arturo Iacobelli [Mon, 21 Jun 2021 19:02:18 +0000 (15:02 -0400)]
Switched usage to AndroidX libraries.

2 years agoUpdated Changelog
Armin Novak [Wed, 2 Jun 2021 11:12:41 +0000 (13:12 +0200)]
Updated Changelog

2 years agoFixed issues with planar codec buffer alignment
Armin Novak [Wed, 2 Jun 2021 08:47:10 +0000 (10:47 +0200)]
Fixed issues with planar codec buffer alignment

Align width and height to next multiple of 4 to avoid issues with
internal buffer sizes.

(cherry picked from commit c2049673be9be05a87d62759c55893759ed64d05)

2 years agoAdded rdg_read_http_unicode_string error messages
akallabeth [Tue, 25 May 2021 06:03:19 +0000 (08:03 +0200)]
Added rdg_read_http_unicode_string error messages

Added log entries in case something in the packet is wrong

(cherry picked from commit 7c2855b4a8c71a994b4ccc245d3faec4a39bed15)

2 years agochangelog
akallabeth [Tue, 25 May 2021 12:23:57 +0000 (14:23 +0200)]
changelog

2 years agocodec/progressive: Allow the usage of multithreading for decoding
Pascal Nowack [Mon, 24 May 2021 09:28:02 +0000 (11:28 +0200)]
codec/progressive: Allow the usage of multithreading for decoding

While decoding RemoteFX encoded frames is multithreaded, decoding
RemoteFX Progressive frames is not, although both codecs work
relatively similarly.
This is especially noticeable with frames, that have a resolution
larger than 1920x1080 pixels.

decompress_tile_first() and decompress_tile_upgrade() can both run in
different threads at the same time for different tiles without necessary
adjustments.

So, do exactly that using the ThreadPool that already exists in the
RFX_CONTEXT to decrease the decoding time and therefore increase the
performance.
On a 3K display (2880x1620 pixels) this makes out of a choppy
experience a fluid experience.

(cherry picked from commit e79fefe21ccd86aa9db3b5c7cd91313da4bd9dd9)

2 years agocodec/progressive: Fix a memory leak
Pascal Nowack [Mon, 24 May 2021 14:49:57 +0000 (16:49 +0200)]
codec/progressive: Fix a memory leak

When checking whether tiles and updatedTileIndices are both non-NULL,
one of them might be NULL, while the other struct member might not
be NULL and progressive_surface_context_new() leaks then the non-NULL
struct member.

Fix this by freeing both struct members, when aborting in
progressive_surface_context_new().
free() will take no action on pointers that are NULL, so no additional
check is needed.

(cherry picked from commit 805dc60e1465b8392da35b66a0a65f473755049f)

2 years agoForce close clipboard file descriptor if request size is 0
akallabeth [Fri, 26 Mar 2021 10:32:40 +0000 (11:32 +0100)]
Force close clipboard file descriptor if request size is 0

(cherry picked from commit 758b16f0e20b5c5412c1769c7d2b11518edfa758)

2 years agoForce close clipboard files
akallabeth [Fri, 26 Mar 2021 10:21:27 +0000 (11:21 +0100)]
Force close clipboard files

(cherry picked from commit 781c764dfda8876a8b49288c2fef01cfe1173a7f)

2 years agoForce fd close on error
akallabeth [Fri, 26 Mar 2021 10:01:41 +0000 (11:01 +0100)]
Force fd close on error

(cherry picked from commit 74c46001435a2dfc3b6978bf8d1f25f266a91659)

2 years agoCleaned up clipboard file fd handling
akallabeth [Fri, 26 Mar 2021 09:52:35 +0000 (10:52 +0100)]
Cleaned up clipboard file fd handling

(cherry picked from commit eb4378e3a4f9f4090fa78ef090d06d93bcc59253)

2 years agoUpdated changelog.
akallabeth [Mon, 3 May 2021 11:38:17 +0000 (13:38 +0200)]
Updated changelog.

2 years agoFixed #6989: Use X509_STORE_set_default_paths
akallabeth [Mon, 3 May 2021 06:27:31 +0000 (08:27 +0200)]
Fixed #6989: Use X509_STORE_set_default_paths

(cherry picked from commit b528ecde4f68d297b8464855a7ae0e02d36b78fc)

2 years agoevent: Fix reset of non eventfd winpr event
Martin Fleisz [Tue, 20 Apr 2021 11:51:55 +0000 (13:51 +0200)]
event: Fix reset of non eventfd winpr event

(cherry picked from commit b7c4ec759fa64d6079fadc2c78946cc34a42bb6c)

2 years agowinpr: fix #6970
David Fort [Thu, 22 Apr 2021 07:26:59 +0000 (09:26 +0200)]
winpr: fix #6970

Timer changes were wrong when timerfd support is not available (no valid file
descriptor returned by GetFd calls).

(cherry picked from commit 5e3e2cd9fda13176f4ae0eb2d544cf5fb93b0fd6)

2 years agowinpr: fix error path in winpr_event_init (#6974)
David Fort [Thu, 22 Apr 2021 09:57:44 +0000 (11:57 +0200)]
winpr: fix error path in winpr_event_init (#6974)

(cherry picked from commit db02de2d8bdb36663e198b43d4e50e1f1136f5b8)

2 years agowinpr: correctly implement APC
David Fort [Wed, 24 Mar 2021 17:32:43 +0000 (18:32 +0100)]
winpr: correctly implement APC

This patch implements APC functions and fixes waitable timers with completions.

(cherry picked from commit aeba30a505e9872a57e0fec00fc84cf52dc43d93)

2 years agowinpr: cleanup polling code
David Fort [Tue, 16 Mar 2021 14:15:13 +0000 (15:15 +0100)]
winpr: cleanup polling code

Externalize all the polling logic in a pollset component. This patch prepares the
support of APC and alertable state.

(cherry picked from commit dfbbf3b618f789496a901d727082e0e02c11fd3b)

2 years agoSimplified sync test
Armin Novak [Tue, 27 Apr 2021 09:21:16 +0000 (11:21 +0200)]
Simplified sync test

(cherry picked from commit 18ceebb774312b013172839bebb176017fc719b3)

2 years agoRemoved duplicated escape
akallabeth [Fri, 23 Apr 2021 15:53:04 +0000 (17:53 +0200)]
Removed duplicated escape

(cherry picked from commit 187946e965e5e2ac6d0fe97d421cb377d724a295)

2 years agoupdated changelog
akallabeth [Mon, 3 May 2021 08:40:00 +0000 (10:40 +0200)]
updated changelog

2 years agoAdded version check for deprecated ffmpeg symbols
Armin Novak [Thu, 29 Apr 2021 11:18:57 +0000 (13:18 +0200)]
Added version check for deprecated ffmpeg symbols

(cherry picked from commit 80b25de1a8da1c03c96ccad25567fd85823a884e)

2 years agoFixed duplicate call to NtCurrentTeb
Armin Novak [Wed, 22 Jan 2020 14:17:03 +0000 (15:17 +0100)]
Fixed duplicate call to NtCurrentTeb

(cherry picked from commit ca1fe0193e2728635b415478dc366939817cfb6c)

2 years agoFix NTLM auth message return code.
Armin Novak [Fri, 29 Nov 2019 08:33:40 +0000 (09:33 +0100)]
Fix NTLM auth message return code.

(cherry picked from commit aae3386226b1173c47a22843d52e5ed9897586e0)

2 years agoCleaned up SAM file parser.
akallabeth [Fri, 16 Apr 2021 13:30:54 +0000 (15:30 +0200)]
Cleaned up SAM file parser.

(cherry picked from commit b500800104d3e07f2c00d3c6bc9a78f24193577e)

2 years agoFixed log filter initialization from env
akallabeth [Fri, 16 Apr 2021 11:55:59 +0000 (13:55 +0200)]
Fixed log filter initialization from env

(cherry picked from commit 4dc40c4b642372a1691ee17295555c5f5babec2e)

2 years agoUpdated changelog for #6938
akallabeth [Fri, 16 Apr 2021 08:58:47 +0000 (10:58 +0200)]
Updated changelog for #6938

2 years agoFixed #6938: Remote app mode clipboard fix
akallabeth [Fri, 16 Apr 2021 08:50:08 +0000 (10:50 +0200)]
Fixed #6938: Remote app mode clipboard fix

In remote app mode the _FREERDP_TIMESTAMP_PROPERTY does not work.
Therefore ignore it

(cherry picked from commit f2254f0b09a5fbc424ef3876cb47b03d83963c38)

3 years agoUpdated changelog. (#6906) 2.3.2
akallabeth [Mon, 15 Mar 2021 12:29:35 +0000 (13:29 +0100)]
Updated changelog. (#6906)

3 years agoEnsure canvas background is black before drawing
akallabeth [Mon, 15 Mar 2021 09:04:59 +0000 (10:04 +0100)]
Ensure canvas background is black before drawing

(cherry picked from commit 618afd7028219610ecf580d10eab6e38096b6408)

3 years agoUpdated OpenSSL and android dependencies
akallabeth [Mon, 15 Mar 2021 08:49:23 +0000 (09:49 +0100)]
Updated OpenSSL and android dependencies

(cherry picked from commit 54fa29dc2d2125578efe6c80b214f42b669a140d)

3 years agoReverted winpr_BinToHexString argument change
Armin Novak [Fri, 12 Mar 2021 11:24:42 +0000 (12:24 +0100)]
Reverted winpr_BinToHexString argument change

keep API compatible.

3 years agoFixed CodeQL warnings
akallabeth [Mon, 25 Jan 2021 09:06:01 +0000 (10:06 +0100)]
Fixed CodeQL warnings

(cherry picked from commit 95a9e60827c91cb9b924d7ce3c220c30bd36907d)

3 years agoFix /monitor-list
Armin Novak [Fri, 12 Mar 2021 10:53:34 +0000 (11:53 +0100)]
Fix /monitor-list

3 years agoUpdated changelog
Armin Novak [Fri, 12 Mar 2021 09:53:41 +0000 (10:53 +0100)]
Updated changelog

3 years agoFixed #6882: Use default output device on mac
Armin Novak [Fri, 12 Mar 2021 09:58:23 +0000 (10:58 +0100)]
Fixed #6882: Use default output device on mac

(cherry picked from commit b09d2044e13577c68127effff3d3716c45f7571d)

3 years agoFixed mac issues with smartcard context cleanup (#6890)
akallabeth [Fri, 12 Mar 2021 07:56:23 +0000 (08:56 +0100)]
Fixed mac issues with smartcard context cleanup (#6890)

(cherry picked from commit b8a8ae4622a2c426c54c300b32c50316f0af42b0)

3 years agoAdded missing bounds check.
Armin Novak [Fri, 12 Mar 2021 09:15:51 +0000 (10:15 +0100)]
Added missing bounds check.

(cherry picked from commit 2e6069d95b997d0dc7d2cc118255570d22f0ae0c)

3 years agoAdded fuzzying test for planar decoder
Armin Novak [Fri, 12 Mar 2021 09:07:44 +0000 (10:07 +0100)]
Added fuzzying test for planar decoder

(cherry picked from commit 9bbc2cd094ac837a8f1196e80e7643c00436e486)

3 years agoAdded bounds check in rdpgfx_recv_wire_to_surface_1_pdu
Armin Novak [Fri, 12 Mar 2021 08:29:55 +0000 (09:29 +0100)]
Added bounds check in rdpgfx_recv_wire_to_surface_1_pdu

(cherry picked from commit 5fc3846f7793d4afe48387ac3aeffd4ad6852bab)

3 years agoAdded bounds checks to gfx commands
Armin Novak [Fri, 12 Mar 2021 08:12:28 +0000 (09:12 +0100)]
Added bounds checks to gfx commands

(cherry picked from commit dd61853142a07af0eca80c901292075373a6b2d6)

3 years agouse tlsOut BIO when using websocket in rdg_bio_ctrl
akarl [Fri, 5 Mar 2021 17:19:06 +0000 (18:19 +0100)]
use tlsOut BIO when using websocket in rdg_bio_ctrl

(cherry picked from commit 0e19c443e41cdc031a38a6ea24298972420af778)

3 years agoUpdated changelog
akallabeth [Tue, 9 Mar 2021 12:57:59 +0000 (13:57 +0100)]
Updated changelog

3 years agoFilter RDPDR types other than drives on windows hotplug
Armin Novak [Tue, 9 Mar 2021 11:23:37 +0000 (12:23 +0100)]
Filter RDPDR types other than drives on windows hotplug

(cherry picked from commit 6f599eabbedace4adc215186783deec680057003)

3 years agoUse specific names for drive hotplug special values
akallabeth [Tue, 9 Mar 2021 11:09:58 +0000 (12:09 +0100)]
Use specific names for drive hotplug special values

(cherry picked from commit b1be3d78fcc63a5842f7707a139b2582a4a42b21)

3 years agoCheck smartcard_convert_string_list for NULL string
akallabeth [Tue, 9 Mar 2021 08:22:39 +0000 (09:22 +0100)]
Check smartcard_convert_string_list for NULL string

In #6821 it has been reported that there are buggy smartcard
drivers that report a string size but fail to allocate the string
itself. This check avoids a crash with such input parameters

(cherry picked from commit f8b1e662b33f7b8f77cf6582d549348c2d048a2e)

3 years agoUpdated changelog.
akallabeth [Mon, 8 Mar 2021 13:33:46 +0000 (14:33 +0100)]
Updated changelog.

3 years agoBackported #6865: Disable websockets command line option
akallabeth [Mon, 8 Mar 2021 13:31:17 +0000 (14:31 +0100)]
Backported #6865: Disable websockets command line option

3 years agoUpdated changelog.
akallabeth [Mon, 8 Mar 2021 13:23:28 +0000 (14:23 +0100)]
Updated changelog.

3 years agoFix xf_Pointer_SetPosition with smart-sizing
akallabeth [Mon, 8 Mar 2021 12:52:29 +0000 (13:52 +0100)]
Fix xf_Pointer_SetPosition with smart-sizing

(cherry picked from commit d3e3ab7b5d5ce376ba72fa1fc0aee2f25c9682b4)

3 years agoUpdated changelog
Armin Novak [Fri, 5 Mar 2021 08:01:44 +0000 (09:01 +0100)]
Updated changelog

3 years agoAdded API check to allow compilation/run with mac os < 10.14
Armin Novak [Tue, 2 Mar 2021 08:11:28 +0000 (09:11 +0100)]
Added API check to allow compilation/run with mac os < 10.14

(cherry picked from commit 1cd97c327048ce87bb4e6da307f9ff959497cd3e)

3 years agoParse on a copy of the argument string for printer
akallabeth [Thu, 4 Mar 2021 13:26:35 +0000 (14:26 +0100)]
Parse on a copy of the argument string for printer

If done on original the wrong backend is loaded on autoreconnect

(cherry picked from commit af1c6ebcb49c93d636817ec98f74d07cba9d7f26)

3 years agoUpdated changelog
akallabeth [Thu, 4 Mar 2021 13:31:46 +0000 (14:31 +0100)]
Updated changelog

3 years agoFixed smartcard_convert_string_list with 0 length
Armin Novak [Wed, 3 Mar 2021 10:39:55 +0000 (11:39 +0100)]
Fixed smartcard_convert_string_list with 0 length

(cherry picked from commit e9904e286f43dea5940182b25740730c55e7c8a6)

3 years agoUpdated changelog for next stable
akallabeth [Tue, 2 Mar 2021 07:03:12 +0000 (08:03 +0100)]
Updated changelog for next stable

3 years agoFixed linking dependencies for client geometry channel
akallabeth [Tue, 1 Dec 2020 10:44:14 +0000 (11:44 +0100)]
Fixed linking dependencies for client geometry channel

(cherry picked from commit 7056433c8ecd045912fecb896ffa2eac3aad1410)

3 years agoFixed format string in smartcard_trace_state_return
akallabeth [Tue, 2 Mar 2021 06:50:17 +0000 (07:50 +0100)]
Fixed format string in smartcard_trace_state_return

(cherry picked from commit ca96c4450707d39dbd5c94f2b1c4ae807789b012)

3 years agoAdded -DDEFINE_NO_DEPRECATED CMake option 2.3.1
akallabeth [Mon, 1 Mar 2021 09:29:33 +0000 (10:29 +0100)]
Added -DDEFINE_NO_DEPRECATED CMake option

With that option all symbols marked deprecated are no longer
compiled. This helps testing compatibility of external apps.

3 years agoAdded changelog.
akallabeth [Sat, 27 Feb 2021 07:40:16 +0000 (08:40 +0100)]
Added changelog.

3 years agoFixed a leak on mouse cursor updates
akallabeth [Sat, 27 Feb 2021 16:37:35 +0000 (17:37 +0100)]
Fixed a leak on mouse cursor updates

3 years agoReverted connectErrorCode removal
akallabeth [Sat, 27 Feb 2021 07:35:33 +0000 (08:35 +0100)]
Reverted connectErrorCode removal

Reverted changes from e4b30a5cb6100a8ea4f320b829c9c5712ed4a783
removing the symbol/define, keep the changes for the clients.
Mark as deprecated

3 years agoAdded explicit warnings for experimental/unstable features
akallabeth [Sat, 27 Feb 2021 07:30:01 +0000 (08:30 +0100)]
Added explicit warnings for experimental/unstable features

3 years agoAdded compatibility define
akallabeth [Sat, 27 Feb 2021 07:29:46 +0000 (08:29 +0100)]
Added compatibility define

3 years agoUpdated changelog 2.3.0
akallabeth [Wed, 24 Feb 2021 06:24:07 +0000 (07:24 +0100)]
Updated changelog

3 years agoCompatibility reordering of new symbols in struct
akallabeth [Wed, 24 Feb 2021 06:23:54 +0000 (07:23 +0100)]
Compatibility reordering of new symbols in struct

3 years agoForce enable wayland in ci and nightly
akallabeth [Sat, 23 Jan 2021 09:01:48 +0000 (10:01 +0100)]
Force enable wayland in ci and nightly

(cherry picked from commit ce396a9aff3b63edd76a92e71d96c64d1d237fb2)

3 years agoci [codeql]: run apt update before install
Bernhard Miklautz [Fri, 4 Dec 2020 13:21:12 +0000 (14:21 +0100)]
ci [codeql]: run apt update before install

(cherry picked from commit 7bec71a63265bd8fd50e249bc733697f469e45cd)

3 years agoCreate codeql-analysis.yml
akallabeth [Mon, 23 Nov 2020 08:36:21 +0000 (09:36 +0100)]
Create codeql-analysis.yml

(cherry picked from commit 2b676bf1e7de111cd63c7f77cbbbf1d299b3a8fd)

3 years agoFixed smartcard crash on error return (invalid length)
akallabeth [Thu, 18 Feb 2021 15:48:09 +0000 (16:48 +0100)]
Fixed smartcard crash on error return (invalid length)

3 years agoFixed #6821: _stricmp does not like NULL strings
Armin Novak [Wed, 17 Feb 2021 15:45:56 +0000 (16:45 +0100)]
Fixed #6821: _stricmp does not like NULL strings

(cherry picked from commit 7b211e525892f056c18c827b9f56ccc24d6ae5f3)

3 years agoUpdated windows time zones 2021-02-11
Armin Novak [Thu, 11 Feb 2021 16:13:28 +0000 (17:13 +0100)]
Updated windows time zones 2021-02-11

(cherry picked from commit 2e5c09f20984654b3cc9a5ec32683dcff0b25df6)

3 years ago2.0 compatibility for rdpinput flag debug function
akallabeth [Tue, 16 Feb 2021 16:05:27 +0000 (17:05 +0100)]
2.0 compatibility for rdpinput flag debug function

3 years agoFixed #6712: Use window size from settings
akallabeth [Fri, 12 Feb 2021 13:18:24 +0000 (14:18 +0100)]
Fixed #6712: Use window size from settings

The xfc->window might be NULL (remote app, ...)

(cherry picked from commit 6ecd440658eee7dbd0a07c1366946046746d0b8d)

3 years agoMinor typo fix
Fabio Fantoni [Sun, 14 Feb 2021 17:35:42 +0000 (18:35 +0100)]
Minor typo fix

From debian packages patch done by Mike Gabriel
<mike.gabriel@das-netzwerkteam.de>

(cherry picked from commit 5c408e080e66c917ec4aeaaadf324b9665ba992a)

3 years agofreerdp-client: don't enable vmconnect mode based on PCB field presence in .RDP file
Marc-André Moreau [Thu, 11 Feb 2021 20:05:53 +0000 (15:05 -0500)]
freerdp-client: don't enable vmconnect mode based on PCB field presence in .RDP file

(cherry picked from commit 4e14e7d41e10f39de9a0fafe53461e9fb5ebc765)

3 years agoFixed formatting and source/destination length use
akallabeth [Fri, 12 Feb 2021 07:30:01 +0000 (08:30 +0100)]
Fixed formatting and source/destination length use

(cherry picked from commit f0ba8d7fb9c21b1134a3089eda661852b2861c0e)

3 years agolibfreerdp: core: deep copy ServerCertificate
mingfang [Fri, 12 Feb 2021 02:27:24 +0000 (10:27 +0800)]
libfreerdp: core: deep copy ServerCertificate

(cherry picked from commit b0783771055f55dccde85f8f5e50954ffca93383)

3 years agoCompatibility commit for RDPEI API
Armin Novak [Thu, 11 Feb 2021 11:43:05 +0000 (12:43 +0100)]
Compatibility commit for RDPEI API

3 years agoFixed issue with backported websockets support
Armin Novak [Thu, 11 Feb 2021 11:31:54 +0000 (12:31 +0100)]
Fixed issue with backported websockets support

3 years agoUpdated changelog
Armin Novak [Thu, 11 Feb 2021 08:15:18 +0000 (09:15 +0100)]
Updated changelog

3 years agoclients: Use the correct wheel rotation value
Pascal Nowack [Wed, 10 Feb 2021 17:50:51 +0000 (18:50 +0100)]
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)

3 years agoFixed #6801: Delay sending of resolution change
akallabeth [Wed, 10 Feb 2021 14:32:07 +0000 (15:32 +0100)]
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)

3 years agoAdded ConnectionStateChangeEvent for clients
Armin Novak [Mon, 8 Feb 2021 09:41:34 +0000 (10:41 +0100)]
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)

3 years agordg websocket support
Michael Saxl [Mon, 25 Jan 2021 15:20:18 +0000 (16:20 +0100)]
rdg websocket support

(cherry picked from commit 99489318f4832dbeca2130ae2c45f26c4e9a85bd)

3 years agoFixed a ConvertToUnicode issue and added a unit test
akallabeth [Tue, 9 Feb 2021 14:48:20 +0000 (15:48 +0100)]
Fixed a ConvertToUnicode issue and added a unit test

(cherry picked from commit e15684cb1477e2fac6170835ac9132443dc79970)

3 years agoAlways return data on SCardGetStatusChange
Armin Novak [Mon, 8 Feb 2021 15:42:40 +0000 (16:42 +0100)]
Always return data on SCardGetStatusChange

If the call fails just return empty data for each reader.

(cherry picked from commit f0317a5e0fdc31f7f5f014e90e2b349fc7824bf2)

3 years agoFixed issue with GetAttr where the result buffer was not allocated
akallabeth [Sun, 7 Feb 2021 17:48:59 +0000 (18:48 +0100)]
Fixed issue with GetAttr where the result buffer was not allocated

(cherry picked from commit 38ae006db981c5bb031d5fbd957d99d2fef5c14a)

3 years agoFixed GetAttrib return length
akallabeth [Sun, 7 Feb 2021 17:13:18 +0000 (18:13 +0100)]
Fixed GetAttrib return length

(cherry picked from commit 5342f351ea441c1c3c1b34af216d583051e84fdc)

3 years agoFixed smartcard_unpack_reader_state, allow empty names
akallabeth [Sun, 7 Feb 2021 11:21:44 +0000 (12:21 +0100)]
Fixed smartcard_unpack_reader_state, allow empty names

(cherry picked from commit 2757b5d6c08e05154d5968c2fc04f7b15a7ea3d3)

3 years agoFixed SCardTransmit return
akallabeth [Sat, 6 Feb 2021 15:59:51 +0000 (16:59 +0100)]
Fixed SCardTransmit return

(cherry picked from commit ad4694f7a02cb9295795b6c5d07fa9bdb1614d2b)

3 years agoFixed SCardState wrapper
akallabeth [Sat, 6 Feb 2021 14:55:21 +0000 (15:55 +0100)]
Fixed SCardState wrapper

(cherry picked from commit e5a1dae34f018d45049304a10a22658d853b1cc0)

3 years agoUnified smartcard call data structs
akallabeth [Sat, 6 Feb 2021 14:22:38 +0000 (15:22 +0100)]
Unified smartcard call data structs

(cherry picked from commit 2674d3b2f3700e0b4bc859d41b4506d8c28d2d95)

3 years agoUnified smartcard handle converstion
akallabeth [Sat, 6 Feb 2021 14:08:57 +0000 (15:08 +0100)]
Unified smartcard handle converstion

(cherry picked from commit 69d33da061ff15d2c016de1569b54ca68a578f05)

3 years agoFixed various return values in case of result != SCARD_S_SUCCESS
akallabeth [Sat, 6 Feb 2021 13:28:28 +0000 (14:28 +0100)]
Fixed various return values in case of result != SCARD_S_SUCCESS

(cherry picked from commit e32305dd3a09312cc04e428bb7d2cb5395be1fdd)

3 years agoFixed GetAttrib call
akallabeth [Sat, 6 Feb 2021 11:40:17 +0000 (12:40 +0100)]
Fixed GetAttrib call

(cherry picked from commit 99d228251c73c3c33bc1119ceb7d084f77d80076)

3 years agorefactored smartcard allocations
akallabeth [Sat, 6 Feb 2021 11:21:03 +0000 (12:21 +0100)]
refactored smartcard allocations

(cherry picked from commit 27ba319c89ab46431b0df1b9ad41daf68b7eae6f)

3 years agoFixed SCard debug WCHAR string lengths
akallabeth [Fri, 5 Feb 2021 16:12:52 +0000 (17:12 +0100)]
Fixed SCard debug WCHAR string lengths

(cherry picked from commit a9409221d073e8665a1f27da764d9d042f557e0f)