Armin Novak
8316bca9dd
[winpr,stream] fix Stream_Write_UTF16_String return checks
2026-03-02 17:36:41 +01:00
Armin Novak
be5c9bed64
[utils,pcap] check _fseeki64 return
2026-03-02 11:57:23 +01:00
Armin Novak
e6fca2c021
[winpr,stream] Fix Stream_SetPosition return checks
2026-03-02 11:37:20 +01:00
Armin Novak
cc5f1bbb82
[server,proxy] check for nullptr before using scard_call_context
...
* Make smartcard_call_cancel_all_context return FALSE if a NULL context
is supplied.
* Do not call smartcard_call_context_signal_stop if the context is NULL
2026-03-02 09:45:27 +01:00
Armin Novak
92ab55c5e1
[winpr,stream] Add Stream_ResetPosition
...
A helper function that does not require return checks, in contrast to
Stream_SetPosition, which might fail.
2026-03-01 06:11:59 +01:00
Armin Novak
ea77d2d922
[nodiscard] fix all InitOnceExecuteOnce usages
2026-02-27 15:52:28 +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
8a24443ed6
[nodiscard] fix wrong attribute position
2026-02-24 16:10:11 +01:00
Armin Novak
a5751dfe07
[utils,signal] rename header, avoid warnings
2026-02-24 11:03:45 +01:00
Armin Novak
16a8d2bbe5
[utils,signal] fix compiler warnings
2026-02-24 09:38:59 +01:00
Armin Novak
546908ebeb
[utils,signal] fix missing function declaration
2026-02-24 09:05:42 +01:00
Armin Novak
042d0dfd77
[channel,smartcard] fix logging issues
2026-02-20 12:04:57 +01:00
Armin Novak
33a8b879eb
[utils,smartcard] stop context thread on cancel all
...
When cancelling all smartcard context related operations also trigger
smartcard_call_context_signal_stop to terminate all related threads.
2026-02-20 10:04:41 +01:00
Armin Novak
e8099c493d
[utils,signal] implement windows handlers
2026-02-19 22:27:14 +01:00
Armin Novak
a1ebab4192
[utils,signal] split handlers per platform
2026-02-19 22:27:11 +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
65d59d3b3c
[utils,smartcard] check stream length on padding
...
When reading optional padding in smartcard channel check if padding is
actually there.
2026-02-15 11:34:59 +01:00
Armin Novak
f805a57b9d
[utils,heplers] fix freerdp_getApplicationDetailsVersion
2026-02-10 19:27:44 +01:00
Armin Novak
e6252d191d
[utils,http] replace sscanf
2026-02-10 16:38:15 +01:00
Armin Novak
baf31336a8
[utils,helpers] add freerdp_getApplicationDetailsString
2026-02-09 19:55:48 +01:00
Armin Novak
39e33d9e9d
[utils,helpers] add application details getter/setter
...
* Allow an application to set a vendor/product/version namespace to search
for configuration files/settings/...
* Replace all FREERDP_VENDOR_STRING and similar macros with these
getters.
2026-01-29 22:47:45 +01:00
akallabeth
7990eec166
[freerdp] mark all WINPR_ATTR_MALLOC also nodiscard
2026-01-26 13:39:39 +01:00
akallabeth
eb83f339b4
[channels,rdpdr] flag definition and stringify
...
* Use a enum to define RDPDR_DTYP_* constants
* Add public API freerdp_device_type_string for stringify
* Add WINPR_ATTR_NODISCARD in rdpdr_utils.h
2026-01-25 09:15:05 +01:00
akallabeth
09ae30a0f9
[core,settings] define OrderSupport flags and stringify
...
* Define OrderSupportFlags as enum
* Add public API stringify function
2026-01-25 09:14:59 +01:00
akallabeth
6673e8a86f
[core,utils] add freerdp_input_touch_state_string
...
* Add freerdp_input_touch_state_string
* Remove duplicate from xfreerdp
2026-01-25 09:00:03 +01:00
akallabeth
a8ca59e290
[channels,disp] Unify definitions and add stringify
...
* Unify FreeRDP_DesktopRotationFlags definitions (needed in settings
and display channel)
* Add stringify function for the flags
2026-01-25 08:55:58 +01:00
akallabeth
dde93d1aa2
[utils,signal] unregister signal handler on termination
2026-01-23 22:20:56 +01:00
akallabeth
832da09b3e
[utils,rdpdr] force constant to unsigned
2026-01-16 13:22:48 +01:00
akallabeth
acb9363349
[c,printf] fix wlog format string to match arguments
2026-01-16 11:42:24 +01:00
Armin Novak
684ddeb168
[utils,rdpdr] add RDPDR_CAPS_IRP_MJ stringify functions
2026-01-15 13:05:15 +01:00
Armin Novak
a47631b772
[utils,encoded_types] fix Wimplicit-int-enum-cast warnings
2026-01-14 10:39:25 +01:00
akallabeth
57c5647d98
[utils,smartcard] add length validity checks
...
in smartcard_unpack_set_attrib_call input length validity checks were
missing.
2026-01-12 09:03:28 +01:00
akallabeth
778276caff
[utils,types] fix missing type casts
2026-01-09 09:24:33 +01:00
Armin Novak
6b36ace10b
[clang,warnings] fix Wjump-misses-init
2026-01-08 11:32:42 +01:00
Armin Novak
2a1c0bbdfc
[clang,warnings] fix Wjump-misses-init
2026-01-08 11:32:42 +01:00
akallabeth
4e212e6f31
[utils,http] log http response
...
add the full http response to the debug log
2025-12-10 14:27:54 +01:00
akallabeth
bd0544bea7
Merge pull request #12050 from akallabeth/from-stdin
...
From stdin and sdl-creds improve
2025-12-08 16:50:14 +01:00
akallabeth
67e55811aa
[utils,helpers] fix freerdp_settings_get_legacy_config_path
...
properly append filename to the path as is done in other configuration
tyhpes.
2025-12-08 02:19:35 +01:00
akallabeth
78c9779eb1
[utils,passphrase] fix dangling pointers
2025-12-07 09:02:57 +01:00
Quentin Thébault
86eff27f6a
libfreerdp: remove SIGUSR1 and SIGUSR2 from fatal signals
...
Signed-off-by: Quentin Thébault <quentin.thebault@defenso.fr >
2025-10-30 12:34:36 +09:00
Armin Novak
27c5246454
[utils] fix from-stdin
...
Ignore console tcgetattr/tcsetattr errors. These might not work if data
is read from stdin.
2025-10-29 12:00:05 +01: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
8b9335aa90
[CMake,libfreerdp] add pkg-config dependencies
2025-09-11 07:17:42 +02:00
akallabeth
e52d024071
[core,settings] unify config path determination
2025-08-29 10:53:26 +02:00
Armin Novak
058cfa972f
[macros] #ifndef MAX
...
on some platforms the macro is part of the standard library, only define
if not already there.
2025-08-20 11:38:46 +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