Commit Graph

33 Commits

Author SHA1 Message Date
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
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
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
1905117465 [core,aad] unify client id
* use a setting to make it configurable
2024-12-10 15:12:32 +01:00
akallabeth
83f2f21ad3 [warnigns] fix lots of bugprone warnings
* update-settings-tests: properly cast types in getter/setter
* wtypes: fix PHANDLE definition
* wStream: fix INT64 write function warnings
* Simplify HANDLE copy in channels, just assign after proper cast
2024-12-06 09:15:48 +01:00
akallabeth
b5f95e0f87 [codespell] fix spelling mistakes 2024-11-21 11:28:06 +01:00
stephanebill
4f2afa8c47 spell check with codespell 2024-11-20 16:53:40 -05:00
David Fort
7bf8669e6d [tools] improve smartcard traffic interpreter
This patch adds interpretations for more commands and adds a new application.
2024-06-18 15:38:17 +02:00
akallabeth
14ca8c736b [settings] assert invalid keys in getter 2023-11-24 14:54:56 +01:00
Armin Novak
8e9b6a9201 [settings] update test generator script 2023-11-24 14:54:56 +01:00
Armin Novak
81d7558184 [settings] remove obsolete generator script 2023-11-24 14:54:56 +01:00
akallabeth
5a6a2a17b1 [tools] fix settings update script 2023-09-21 10:30:09 +02:00
Armin Novak
8f6b42b817 [build] update clang build script 2023-06-08 08:13:16 +02:00
akallabeth
b5fc019c64 [cmake] update clang toolchain 2023-05-24 08:24:32 +02:00
akallabeth
da42a2141e [core,settings] update getter/setter generation
fix issues with const and non const string pointer update
2023-02-01 09:51:54 +01:00
Armin Novak
641022b795 [logging] remove __FUNCTION__ from actual message
prefer the log formatter to provide that information.
2023-01-25 16:26:39 +01:00
Armin Novak
204c43a22c [tools] fixed settings getter generator
use proper default error return values by type
2022-12-22 18:50:05 +01:00
akallabeth
c1a9c19308 [settings] Fixed UTF16 helpers
Do not copy the already allocated buffer
2022-12-02 15:08:09 +01:00
akallabeth
58599c91a3 Add setting name for invalid function access
Try to be helpful and resolve the settings index with a readable
name if possible to help diagnose wrong function use
2022-10-27 10:46:58 +02:00
fifthdegree
5f3bc5842a nla: use winpr asn1 library 2022-07-26 09:38:53 +02:00
akallabeth
648612d6d3 Updated settings helper generator script 2022-06-23 09:18:37 +02:00
Armin Novak
dfe89737a0 Fixed use after free 2022-04-28 08:42:09 +02:00
Armin Novak
1f9916eba2 Added settings comparison function 2022-04-22 10:20:09 +02:00
akallabeth
73cdcdfe09 Logging and parser fixes (#7796)
* Fixed remdesk settings pointer

* Fixed sign warnings in display_write_monitor_layout_pdu

* Use freerdp_abort_connect_context and freerdp_shall_disconnect_context

* Added and updates settings

* info assert/dynamic timezone

* mcs assert/log/flags

* Fixed and added assertions for wStream

* Unified stream length checks

* Added new function to check for lenght and log
* Replace all usages with this new function

* Cleaned up PER, added parser logging

* Cleaned up BER, added parser logging

* log messages

* Modified Stream_CheckAndLogRequiredLengthEx

* Allow custom format and options
* Add Stream_CheckAndLogRequiredLengthExVa for prepared va_list

* Improved Stream_CheckAndLogRequiredLength

* Now have log level adjustable
* Added function equivalents for existing logger
* Added a backtrace in case of a failure is detected

* Fixed public API input checks
2022-04-19 14:29:17 +02:00
David Fort
44c82cd929 Fixes various akallabeth remarks 2022-02-24 08:52:25 +01:00
David Fort
d545ab66e1 tscredential: generate automatically the file from a parser 2022-02-24 08:52:25 +01:00
David Fort
f1e4cc7ee5 smartcard: add a script to do some basic interpretation if smartcard traffic
You can pipe WLOG_LEVEL=DEBUG xfreerdp <args> through the script and it will
try to parse and dump smartcard commands and results. The script has a basic
support for PIV and GIDS applications. The script can also operate on a saved
log file
2022-01-17 16:27:53 +01:00
David Fort
4ec6014964 RDPUDP dissector: cookie hash is present in SYN packet instead of SYN/ACK 2021-05-20 15:10:11 +02:00
David Fort
d418c6ff09 tools: add a wireshark plugin to decode RDP-UDP
This wireshark plugin can decode RDPUDP traffic according to MS-RDPEUDP and MS-RDPEUDP2.
The plugin is statefull and is able to track protocol versions and does its best to
reassemble TLS and DTLS records, even when they are fragmented across different PDUs.
2021-05-17 12:13:49 +02:00