Armin Novak
5a532269ef
[winpr,stream] Check Stream_SetLength return
2026-03-02 11:08:08 +01:00
Armin Novak
89ab3c6c1b
[nodiscard] Fix all winpr_RAND usages
...
* Check return value and act on it.
* Initialize arrays that were missed before.
2026-02-27 15:52:26 +01:00
Armin Novak
5c510af477
[c23,freerdp] replace NULL with nullptr
2026-02-26 15:06:27 +01:00
Armin Novak
e58819830a
[c23] simplify boolean checks
2026-02-26 11:51:05 +01:00
Armin Novak
48267edf2f
[winpr] add WINPR_C_ARRAY_INIT
...
since C23 allows c++ style initializing replace direct use with this
macro
2026-02-25 19:23:08 +01:00
Armin Novak
3fcc287b16
[warnings] initialize all va_list
2026-02-25 07:41:39 +01:00
Armin Novak
f0ee9d7b6f
[core,test] fix use after free
2026-02-13 09:25:55 +01:00
Armin Novak
ccb79eb4d0
[core,test] make TestUtils verbose
...
* Add logging to TestUtils
2026-02-11 17:02:37 +01:00
Armin Novak
4542715e37
[core,test] Add definitions for TestUtils
...
The unit test needs some variables defined, ensure they are.
2026-02-11 16:46:48 +01:00
Armin Novak
1defc14055
[core,test] fix missing WITH_RESOURCE_VERSIONING
2026-02-11 09:56:55 +01:00
akallabeth
043179f916
[core,test] add utils tests
...
Add unit tests for getter/setter of freerdp_setApplicationDetails
2026-01-29 22:47:47 +01:00
akallabeth
c8698a1b9c
[core,settings] add new keys for gateway
...
Add missing settings:
* FreeRDP_GatewayHttpReferer
* FreeRDP_GatewayHttpUserAgent
* FreeRDP_GatewayHttpMsUserAgent
2025-10-28 11:13:52 +01: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
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
Armin Novak
cbcdde7b34
[core,test] fix -Wdiscarded-qualifiers
2025-08-18 14:01:48 +02:00
akallabeth
efbc9f7cbc
[common,settings] fix int casts
2025-06-24 09:38:23 +02:00
akallabeth
6168a7bfd1
[client,common] make all azure settings configurable
2025-06-10 16:30:06 +02:00
Armin Novak
07e39ede20
[winpr,file] Add winpr_CreateFile wrapper
...
Allows creation of a file HANDLE from a utf-8 name
2025-06-05 11:58:47 +02:00
akallabeth
47527a3c0f
[core,test] improve settings test log
2025-05-06 10:48:57 +02:00
akallabeth
af3e259b0b
[core,test] refactor TestSettings
...
* log each test case run
* flush log messages
* split large test case functions
2025-05-06 09:08:01 +02:00
gpotter2
9fce51d7ee
Add FreeRDP_RestrictedAdminModeSupported for server-side
2025-05-05 20:15:31 +02:00
Armin Novak
6a20b7bfd8
[common,settings] fix add_string_or_null
...
* If the value is NULL do not check WINPR_JSON_AddNullToObject return as
that is most likely also NULL
* Fix testcase, always use goto for error handling
2025-04-23 09:31:59 +02:00
Armin Novak
a4c4bad132
[common,settings] new settings (de)serialization API
...
* Add rdpKey to PEM conversion
* Modify WINPR_JSON_Version to return -1 if not supported
* Add rdpSettings serialize and deserialize functions
2025-04-22 12:00:48 +02:00
akallabeth
7e11df73ba
[client,common] add setting FreeRDP_MonitorOverrideFlags
...
use this mask to mark monitor settings set from command line.
2025-04-10 08:31:56 +02:00
Armin Novak
ac1599333e
[common,settings] drop MonitorLocalShiftX|Y compat
2025-02-12 14:04:22 +01:00
akallabeth
0ae7c4b52d
[cmake] refactor configuration
...
* Split common stuff to reusable files
* Disable INTERPROCEDURAL_OPTIMIZATION for SDL2/3 resource targets
2025-02-11 11:33:34 +01:00
akallabeth
1b04ca94f0
[core,settings] fix settings test
...
* with the new freerdp_settings_set_monitor_def_array_sorted more input
configurations are considered as valid.
* add a check for the FreeRDP_MonitorLocalShiftX and
FreeRDP_MonitorLocalShiftY values after providing a monitor
configuration
2025-01-19 15:31:24 +01:00
akallabeth
745ae2d615
[common,settings] MonitorLocalShift[XY] compat
...
Allow unsigned access to MonitorLocalShift[XY] values for compatibility
with older releases.
2025-01-19 15:30:58 +01:00
akallabeth
567887fbb0
[core,settings] Fix MONITOR_DEF settings
...
* Make FreeRDP_MonitorLocalShiftX and FreeRDP_MonitorLocalShiftY signed
* Add function freerdp_settings_set_monitor_def_array_sorted to proplery
align the MONITOR_DEF array according to RDP requirements
2025-01-19 15:30:56 +01:00
akallabeth
cc934795e4
[warnings] fix integer casting
...
* use asserting casts to detect overflows or sign conversions
* code cleanup for issues uncovered by casts
2025-01-01 12:58:34 +01:00
akallabeth
a06d5d511f
[core,test] improve settings test coverage
2024-12-15 10:31:59 +01:00
akallabeth
f25be351b1
[core,gateway] Make tenantid use optional
2024-12-10 15:13:16 +01:00
Armin Novak
f17c1830b7
[aad,avx] improve AzureAD support
...
* New setting GatewayAzureActiveDirectory to fetch wellknown from
* Clean up command line arguments, rename to make function better
understandable
2024-12-10 15:12:41 +01:00
akallabeth
1905117465
[core,aad] unify client id
...
* use a setting to make it configurable
2024-12-10 15:12:32 +01:00
akallabeth
ba8fd2ada5
[cmake] force configuration options
...
limit multiconfiguration options to supported types
2024-12-05 09:36:23 +01:00
akallabeth
def00a32be
[core,settings] add testcases
2024-12-02 21:01:28 +01:00
akallabeth
faae38120c
[cmake,format] reformat all cmake files
2024-11-27 20:41:48 +01:00
Armin Novak
527db6783b
[cmake] split tests
...
* Keep BUILD_TESTING, but only run tests compatible with API (for
packaging)
* Add BUILD_TESTING_INTERNAL for all tests including internal function
tests that modify API to be run on our CI
2024-10-24 09:45:44 +02:00
akallabeth
47c5070805
Merge pull request #10635 from akallabeth/initialize-variables
...
Initialize variables
2024-09-30 16:04:20 +02:00
akallabeth
c319541f0d
[core,settings] add unit test
...
Test cases for freerdp_settings_check_client_after_preconnect
2024-09-30 15:41:31 +02:00
akallabeth
26003e59cc
[va_list] initialize with ={0};
2024-09-24 11:06:18 +02:00
akallabeth
bb242b9a89
[return checks] fix use of WaitForSingleObject
2024-09-16 08:22:37 +02:00
akallabeth
965d231e49
[return checks] fix use of CloseHandle
2024-09-16 08:22:31 +02:00
akallabeth
36c3184a0f
[warnings] fix clang-tidy issues in libfreerdp
2024-08-29 15:34:22 +02:00
akallabeth
9c9d74e920
[warnings] fix redundant casts
2024-08-29 12:03:09 +02:00
akallabeth
1d33095500
[warnings] fix cert-err33-c
...
Fix unused return values, cast to void if on purpose
2024-08-29 10:19:27 +02:00
Armin Novak
d71af44bb1
[warnings] disable warnings for generated code
...
* Disable clang-tidy in test build directories
* Disable compiler warnings for test binary directories.
These contain generated code we can not change, so the warnings are just noise
2024-08-28 09:18:30 +02:00
Armin Novak
96b945aa83
[settings] Added SurfaceCommandsSupported setting
2024-07-24 21:54:39 +02:00
Armin Novak
268bf25f02
[settings] add RemoteFxRlgrMode setting
2024-07-24 21:54:26 +02:00
akallabeth
562fa8a03d
[core,tcp] Improve IPv4 or IPv6 connect
...
* Fix +ipv6 option, now fall back to IPv4 if no IPv6 entry found
* Add new option ForceIPvX to fail connect if no such entry is found
2024-06-28 09:07:33 +02:00