Commit Graph

455 Commits

Author SHA1 Message Date
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
akallabeth
c3e507a82e [winpr,wlog] Replace WLog_PrintMessage calls
Prefer WLog_PrintTextMessage to have proper format string checks in
place.
2025-08-13 15:08:01 +02:00
akallabeth
d690ea0cb2 [utils,smartcard] fix possible assertion 2025-06-10 16:27:16 +02:00
akallabeth
6b80a2d4ef [utils,smartcard] better logging and error checks
* Use wLog as argument where possible to reduce the number of WLog_Get
  calls
* Do better failure checks to avoid reading invalid memory
2025-05-27 10:33:37 +02:00
akallabeth
50cef020de [utils,helpers] add freerdp_GetJSONConfigFile 2025-05-26 19:36:40 +02:00
akallabeth
60330fc771 [utils,smartcard] handle output buffer too small 2025-05-07 21:13:50 +02:00
Armin Novak
4cb1536d2c [utils,smartcard] ignore ConvertWCharToUtf8 return 2025-04-15 10:12:18 +02:00
akallabeth
2e7e6dde87 [utils,smartcard] improve trace log 2025-04-14 22:36:45 +02:00
Armin Novak
f5435740d4 [utils,smartcard] assert and improve log 2025-04-14 13:56:24 +02:00
Armin Novak
de7d253e79 [utils,smartcard] only check return length if success 2025-04-09 10:22:02 +02:00
akallabeth
c06bf6ccb0 [warnings] fix format warnings 2025-03-24 21:23:10 +01:00
akallabeth
9f90d22c9b [utils,pcap] code cleanup 2025-03-04 12:42:40 +01:00
Armin Novak
f24a562f1e [utils,smartcard] check output buffer length
check the resulting length to the one preallocated.
2025-02-26 18:24:51 +01:00
akallabeth
74cd8d8fe0 [freerdp,warnings] fix -Wunused-parameter 2025-02-13 15:53:54 +01:00
akallabeth
5b1c254f2d [utils,smartcard] fix return checks for SCardListReaders 2025-02-13 12:00:12 +01:00
akallabeth
25b5dec23d [utils,smartcard] return proper list for smartcard listing 2025-02-10 17:32:12 +01:00
akallabeth
44f5b6c409 [warnings] fix various clang warnings 2025-02-04 11:22:00 +01:00
akallabeth
0354dd33e1 [utils,passphrase] fix missing include 2025-01-31 12:17:02 +01:00