Armin Novak
35831303ea
[various] add proper return checks
2026-03-02 18:32:38 +01:00
Armin Novak
0f46216a24
[winpr,ssl] check winpr_InitializeSSL return
2026-03-02 11:21:21 +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
0531803808
[warnings] make function declaration names consistent
...
Use the same parameter names for declaration and implementation.
2026-02-26 10:35:25 +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
df64d00a97
[warnings,api] fix -Wunused-result
...
With marking publid API [[nodiscard]] some problematic error checks in
the core library were uncovered. This commit addresses these
shortcomings.
2026-02-17 11:07:08 +01:00
Armin Novak
79498a0d15
[common,assistance] remove extra braces
2026-02-10 15:53:04 +01:00
akallabeth
497f532bc2
[c,printf] fix wlog format string to match arguments
2026-01-16 11:41:04 +01:00
akallabeth
eb4c22cbe0
[c,printf] fix wlog format string to match arguments
2026-01-16 11:41:02 +01:00
akallabeth
2a41b3d205
[tools,settings] update settings generator
...
* Fix format string violations in generator
* Update generated files
2026-01-16 11:38:58 +01:00
Armin Novak
f8ac8fb7b6
[c,warnings] fix unterminated string warnings
...
initialize variables as array to avoid warnings with gcc >= 15 or clang
2026-01-08 11:32:47 +01:00
Armin Novak
ef8b76887a
[clang,warnings] fix Wjump-misses-init
2026-01-08 11:32:37 +01:00
Armin Novak
c3faabebec
[clang,warnings] fix Wjump-misses-init
2026-01-08 11:32:36 +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
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
akallabeth
74648eb3a9
[c,standard] use C99 inline
2025-09-26 11:29:26 +02:00
Armin Novak
6cfdf9e43e
[json] use WINPR_JSON_GetObjectItemCaseSensitive
...
Prefer usage of case sensitive functions that are faster.
2025-09-23 12:38:23 +02:00
akallabeth
83ffa524e9
[core,settings] fix ReceivedCapabilities reset
2025-08-26 12:09:09 +02:00
akallabeth
65f18983ed
[warnings] Fix format string errors
...
* Fix casts of format string arguments (%p requires void*)
* Fix format string to match type of arguments
2025-08-13 15:09:48 +02:00
akallabeth
ec8f2b5dde
[common,settings] force reallocation on caps copy
2025-07-01 09:49:44 +02:00
akallabeth
a86e3dc53c
[client,sdl] print current video driver
2025-06-24 15:43:57 +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
akallabeth
635d6319c6
[common,settings] fix freerdp_device_clone
...
automount property of RDPDR_DTYP_FILESYSTEM was not copied, fix that.
2025-05-22 09:35:03 +02:00
gpotter2
9fce51d7ee
Add FreeRDP_RestrictedAdminModeSupported for server-side
2025-05-05 20:15:31 +02:00
akallabeth
06564e4bc2
[core,settings] fix freerdp_device_collection_add
...
* Assert usage of DeviceArray, ensure returned values are != NULL if
within DeviceCount
* Only reset newly allocated DeviceArray members on resize
2025-04-25 10:21:37 +02:00
Armin Novak
bc22b9d8da
[common,settings] eliminate dead code
2025-04-23 10:13:30 +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
Armin Novak
e92f0170e4
[core,settings] handle empty OrderSupport and received capabilities
2025-04-15 16:09:46 +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
akallabeth
7b9b47555f
[core,capabilties] use dynamic logger
2025-03-17 10:52:52 +01:00
akallabeth
3186977e15
[cmake] Invert WITH_FREERDP_3x_DEPRECATED
...
API breaking change, with this logic the symbol needs to be manually
defined by an API user. So, to fix this:
* Rename to DROP_FREERDP_3x_DEPRECATED
* Invert logic, so a undefined value enables the symbols
2025-03-06 15:30:26 +01:00
akallabeth
d03b4b91d5
[cmake,freerdp] add WITH_FREERDP_3x_DEPRECATED
...
This new CMake option (ON by default) allows building the library with
all symbols deprecated during 3.x release cycle disabled.
This allows compatibility testing external applications for future
FreeRDP 4.x support
2025-03-04 13:26:45 +01:00
akallabeth
761c62f754
[common,settings] add comments for compat entries
2025-02-14 09:09:46 +01:00
akallabeth
b223b0318b
Merge pull request #11167 from akallabeth/unused-warn
...
Fix all unused warnings
2025-02-14 08:55:33 +01:00
akallabeth
97a79933d6
[common,settings] fix backward compatibility for LocalMonitorOffset
...
remmina is using the setters for the old (invalid) unsigned offsets
2025-02-13 17:49:22 +01:00
akallabeth
74cd8d8fe0
[freerdp,warnings] fix -Wunused-parameter
2025-02-13 15:53:54 +01:00
akallabeth
579d9b352d
[tools,settings] generate getter/setter with maybe_unused
...
The rdpSettings getter/setter might be empty, so the parameters of the
functions might be unreferenced.
2025-02-13 15:00:15 +01:00
Armin Novak
ac1599333e
[common,settings] drop MonitorLocalShiftX|Y compat
2025-02-12 14:04:22 +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
a3db26c57a
[warnings] fix cast warnings
2024-12-10 17:26:37 +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
f63a5a5a1f
[winpr,endian] Use new winpr_Data_Write_* names
2024-12-08 22:55:58 +01:00