Commit Graph

21963 Commits

Author SHA1 Message Date
Armin Novak
34a835c412 [cmake,json] limit jansson detection
discard versions older than 2.13
2025-10-01 15:22:12 +02:00
Armin Novak
4300fc586d [winpr,json] check for jansson required minimum version 2025-10-01 14:34:26 +02:00
Armin Novak
d751593a2a [ci,deb] restrict jansson to >= 2.13 2025-10-01 13:18:16 +02:00
akallabeth
cb20e51cda Merge pull request #11910 from akallabeth/retry-fix
[client,common] improve retry handling
2025-10-01 09:51:51 +02:00
Armin Novak
ad8780c823 [core,test] fix TestSettings
Fill values with base64 encoded random data. Some fields are strings
that need to be valid utf-8.
2025-10-01 09:38:47 +02:00
Armin Novak
c0da27476f [client,common] improve retry handling
* Log each return path
* Correctly apply the returned delay
2025-10-01 09:13:47 +02:00
akallabeth
6966d5f31a Merge pull request #11909 from akallabeth/jansson-array
[winpr,json] fix WINPR_JSON_AddItemToArray
2025-09-30 18:23:36 +02:00
Armin Novak
204079d73c [winpr,json] fix WINPR_JSON_AddItemToArray
Use reference stealing version to add the item to the array
2025-09-30 17:19:56 +02:00
akallabeth
9edb268276 Merge pull request #11908 from akallabeth/jansson-ref
Jansson ref count
2025-09-30 17:12:43 +02:00
akallabeth
5100b74c08 Merge pull request #11905 from akallabeth/target-net-address-fix
[common,settings] fix resize of TargetNetAddressess
2025-09-30 17:10:44 +02:00
Armin Novak
b2783956bf [winpr,json] fix jansson return value check
json_object_set_new returns 0 on success, -1 on failure
2025-09-30 17:05:05 +02:00
Armin Novak
5c69cf1406 [winpr,json] fix jansson reference count 2025-09-30 17:04:59 +02:00
akallabeth
32456d180d Merge pull request #11907 from akallabeth/rdpecam
[channels,rdpecam] fix a memory leak
2025-09-30 16:57:23 +02:00
Armin Novak
6eaf8ca683 [channels,rdpecam] fix a memory leak 2025-09-30 16:44:49 +02:00
Armin Novak
052c046ce4 [common,settings] fix resize of TargetNetAddressess
* FreeRDP_TargetNetAddresses and FreeRDP_ReceivedCapabilityData need to
  free up used slots when resizing.
* freerdp_target_net_addresses_resize should not unconditionally discard
  values on resize.
2025-09-30 16:05:39 +02:00
Armin Novak
82b86babe5 [common,test] test freerdp_target_net_addresses_resize
Add a unit test to check the expected behaviour of
freerdp_target_net_addresses_resize matches the implementation.
2025-09-30 16:05:36 +02:00
akallabeth
6be1890bd3 Merge pull request #11903 from akallabeth/bitmap-fix
Bitmap fixes and unit tests
2025-09-30 14:23:56 +02:00
Armin Novak
8735c50e2f [codec,interleaved] add some unit tests
* Create a unit test framework to allow compaing some input data to
  expected output data
* Add a couple of test cases for encoder and decoder
* Add expected output data (of current implementation) to detect changes
  in later iterations
2025-09-30 14:09:15 +02:00
Armin Novak
5fed3f4cfc [codec,bitmap] fix sign of buffer
* Use a uint8_t buffer to avoid issues with casting to/from signed
* Refactor bitmap codec
2025-09-30 14:07:24 +02:00
Armin Novak
fde7eb57ee [winpr,json] fix jansson WINPR_JSON_GetNumberValue 2025-09-30 13:18:55 +02:00
Armin Novak
4aceae4666 [codec,color] Add from string method for PIXEL_FORMAT
* Add FreeRDPGetColorFromatFromName to get a PIXEL_FORMAT from a given
  string.
* Add a unit test to ensure FreeRDPGetColorFromatFromName and
  FreeRDPGetColorFormatName work as expected
2025-09-30 13:17:26 +02:00
akallabeth
e3ae9c472b Merge pull request #11902 from akallabeth/jansson-fix
Jansson fix
2025-09-30 10:27:43 +02:00
Armin Novak
64b67c938c [utils] fix doxygen for freerdp_passphrase_read 2025-09-30 10:15:43 +02:00
Armin Novak
dc6ae54d7a [winpr,json] fix jansson WINPR_JSON_IsObject 2025-09-30 10:15:39 +02:00
akallabeth
720ae9e0ec Merge pull request #11901 from akallabeth/jansson-fix
[winpr,json] fix a memory leak with jansson
2025-09-30 10:00:36 +02:00
Armin Novak
efd1109ca0 [winpr,json] fix a memory leak with jansson
* Add a reference count debug option to jansson implementation
* Fix a memory leak with add_to_object
2025-09-30 09:51:21 +02:00
akallabeth
f731f60f9f Merge pull request #11899 from akallabeth/arm-parse-fix
[core,arm] fix TargetNetAddress size and checks
2025-09-29 12:12:00 +02:00
akallabeth
611dd58bc7 [core,transport] fix inverted condition 2025-09-29 11:56:51 +02:00
akallabeth
a5ba33eb68 [client,common] remove useless printf 2025-09-29 11:46:06 +02:00
akallabeth
6c5fc3623e [core,arm] fix TargetNetAddress size and checks
* Allocate for maximum expected values
* Add checks during parsing to not exceed limits
2025-09-29 11:25:11 +02:00
akallabeth
176dbb1587 Merge pull request #11892 from akallabeth/azure-domain
Azure domain
2025-09-29 10:50:28 +02:00
akallabeth
1ada469cdd [freerdp,utils] modify freerdp_interruptible_get_line
* Make freerdp_interruptible_getc nonblocking so each typed char is
  returned
* Handle ctrl+[cdz] in freerdp_interruptible_getc so the function can be
  aborted by a user
* Handle simple input edit in freerdp_interruptible_get_line (delete
  characters, provide a suggested value)
2025-09-29 10:35:33 +02:00
akallabeth
716dce24db Merge pull request #11897 from akallabeth/threadpool
[winpr,pool] limit minimum threadpool size
2025-09-29 10:24:36 +02:00
akallabeth
9677931343 [core,arm] fix domain setting
While AzureAD seems to be required for many setups, some need an empty
domain (or maybe a different all together?)
So only provide a sane default and allow user override.
2025-09-29 10:17:01 +02:00
akallabeth
8fc7acbfd0 [winpr,pool] limit minimum threadpool size 2025-09-29 08:40:45 +02:00
akallabeth
c6356ef836 [core,nego] add helper nego_rdp_neg_fail_str 2025-09-26 13:14:50 +02:00
akallabeth
2f0f6d7707 [api,doxygen] update documentation
Add (better) documentation for the following callback function types:
* pChooseSmartcard
* pAuthenticateEx
2025-09-26 13:14:47 +02:00
akallabeth
d1d39493c3 Merge pull request #11879 from akallabeth/inline
[c,standard] use C99 inline
2025-09-26 11:45:32 +02:00
akallabeth
74648eb3a9 [c,standard] use C99 inline 2025-09-26 11:29:26 +02:00
akallabeth
c0b1debb80 Merge pull request #11891 from akallabeth/const-correct
[core] fix const correctness
2025-09-26 11:29:09 +02:00
akallabeth
1baa721961 [core] fix const correctness
Make function arguments const if possible.
2025-09-26 11:18:57 +02:00
akallabeth
8377048057 Merge pull request #11889 from akallabeth/target-booting
[core,arm] add TARGET_BOOTING error code
2025-09-26 11:16:09 +02:00
akallabeth
e80e643f90 Merge pull request #11890 from akallabeth/wmclass
[client,sdl] set metadata after command line parsing
2025-09-26 10:26:29 +02:00
akallabeth
53d63b3120 [core,arm] add TARGET_BOOTING error code
Propagate the error code for a VM still booting to client.
2025-09-26 10:13:46 +02:00
akallabeth
07c2c39972 [client,sdl] set metadata after command line parsing
This allows to apply a user provided /wm-class setting.
2025-09-26 10:11:22 +02:00
akallabeth
f070c87d75 Merge pull request #11886 from akallabeth/janssen
[winpr,json] add jansson support
2025-09-25 16:17:47 +02:00
Armin Novak
fe31f84835 [core,gateway] fix cast warning 2025-09-25 16:17:09 +02:00
Armin Novak
c44052f12f [cmake,json] add second fallback
If both, CMake and pkg-config fail, fall back to find_path and
find_library detection
2025-09-25 16:09:00 +02:00
Armin Novak
6b90797399 [nightly,deb] add optional libjansson support 2025-09-25 15:15:04 +02:00
Armin Novak
8f8cd89f69 [winpr,json] add jansson support
* Split JSON implementations in separate files
* Simplify JSON detection
* Add jansson implementation
2025-09-25 15:09:28 +02:00