4143 Commits

Author SHA1 Message Date
Armin Novak
1defc14055 [core,test] fix missing WITH_RESOURCE_VERSIONING 2026-02-11 09:56:55 +01:00
Armin Novak
82dbf58296 [core,settings] initialize settings with application details 2026-02-10 11:20:14 +01:00
Armin Novak
d9e81aed22 [core,smartcardlogon] use freerdp_getApplicationDetailsString 2026-02-10 11:20:13 +01:00
Martin Fleisz
e4794883d1 Merge pull request #12283 from akallabeth/gw-relax
[core,gateway] relax TSG parsing
2026-02-09 10:40:30 +01:00
Armin Novak
5f958d5edf [core,gateway] relax TSG parsing
* Relax 2.2.9.2.1.5 TSG_PACKET_RESPONSE::responseDataLen checks, ignore
  padding data.
* Add stringification for TSG version caps
* Add log messages for caps
2026-02-09 10:19:36 +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
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
fe7c5ab7e9 [core,settings] improve rdpMonitor log
stringify the orientation value in the log message.
2026-01-29 22:06:34 +01:00
Jonas Ådahl
4ea803134e peer: Disconnect if Logon() returned FALSE
Returning FALSE implies the client was not authorized, but it does not
have any real impact on the connection, other than setting the
authorized field.

Change this by disconnecting the client if a Logon() callback returned
that a client was not authorized.
2026-01-27 19:39:42 +01:00
akallabeth
076a8386a6 Merge pull request #12186 from akallabeth/error-handling-fixes
Error handling fixes
2026-01-26 17:05:19 +01:00
akallabeth
7990eec166 [freerdp] mark all WINPR_ATTR_MALLOC also nodiscard 2026-01-26 13:39:39 +01:00
akallabeth
3f163cee9c [warnings] fix unused result warnings 2026-01-26 13:22:24 +01:00
akallabeth
ec4c4ee5a3 [channels,rdpei] refactor variable names 2026-01-26 11:09:53 +01:00
Jonas Ådahl
e6aa564bd7 Add freerdp_nla_FreeContextBuffer()
This function should be used to free certain buffers retrieved using
freerdp_nla_QueryContextAttributes(). It fetches the right vfunc table
to call into, which typically ends up in sspi_FreeContextBuffer() in
sspi_winpr.c.

This is needed to allow querying the PackageInfo attribute.
2026-01-22 12:50:24 +01:00
Armin Novak
c9d1e371d2 [gateway,tsg] fix unused variable warning 2026-01-21 13:19:56 +01:00
Armin Novak
ea00e5ea4d [gateway,tsg] fix idleTimeout parsing 2026-01-21 12:55:25 +01:00
Armin Novak
9c2e50408a [gateway,tsg] log if unparsed data is detected 2026-01-21 12:55:25 +01:00
Armin Novak
de4109b0a7 [gateway,rdg] log unparsed data if detected 2026-01-21 12:55:24 +01:00
akallabeth
8a53798049 [core,freerdp] eliminate uninitialized warning 2026-01-20 17:15:13 +01:00
akallabeth
4794296e4f Merge pull request #12162 from jadahl/wip/server-kerberos-auth-identity
Allow querying auth identity with kerberos when running as a server
2026-01-20 16:26:38 +01:00
Jonas Ådahl
f93564bb69 Handle querying nla context attributes via the transport
When running as a server, the rdpContext struct doesn't have a rdpNla
instance, so for freerdp_nla_QueryContextAttributes() to work, it has to
use the rdpNla instance from the transport. Note that this instance is
only valid during authentication, though thus usable from the Logon
callback.
2026-01-20 16:04:25 +01:00
akallabeth
36ae046685 [gateway,tsg] fix TSG_PACKET_RESPONSE parsing
* Fix parsing to conform to [MS-TSGU] 2.2.9.2.1.5 TSG_PACKET_RESPONSE
* Deactivate TSG_NAP_CAPABILITY_QUAR_SOH (simplifies parsing)
* Add proper logging for expected parser violations
2026-01-20 14:58:46 +01:00
akallabeth
4d44e3c097 [core,info] fix missing NULL check 2026-01-19 20:11:44 +01:00
akallabeth
b86369beb7 [core,tcp] fix freerdp_tcp_connect_timeout size type 2026-01-16 13:47:25 +01:00
akallabeth
fb8efd45f2 [c,format] fix format string and review warnings 2026-01-16 13:36:14 +01:00
akallabeth
a1f2ea503e [cmake,format] fix source code formatting 2026-01-16 11:47:25 +01:00
akallabeth
3498e08795 [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:56 +01:00
akallabeth
ceb0dc7440 [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:53 +01:00
akallabeth
027ce8eb9a [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:50 +01:00
akallabeth
c3aacdf995 [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:47 +01:00
akallabeth
614330ae8b [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:45 +01:00
akallabeth
07c18cf962 [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:43 +01:00
akallabeth
1bbe44553c [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:40 +01:00
akallabeth
3c2197d14e [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:38 +01:00
akallabeth
443e2655eb [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:35 +01:00
akallabeth
d1634f1eba [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:33 +01:00
akallabeth
c7c96cec57 [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:30 +01:00
akallabeth
1dbd5b4af9 [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:28 +01:00
akallabeth
6fd3cd5823 [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:25 +01:00
akallabeth
7f2fe5677b [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:23 +01:00
akallabeth
cea4127d3b [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:20 +01:00
akallabeth
d597e5d2f3 [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:18 +01:00
akallabeth
cc65c43f84 [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:15 +01:00
akallabeth
762eafb76f [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:12 +01:00
akallabeth
6d289807a4 [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:10 +01:00
akallabeth
558df555b3 [c,printf] fix wlog format string to match arguments 2026-01-16 11:41:07 +01:00
Armin Novak
4e6aa32d19 [core,multitransport] fix enum cast warning 2026-01-14 11:19:57 +01:00
Armin Novak
e710af3b4f [core,gateway] add checks to tsg_ndr_read_packet_response
Abort on unexpected offset value.
2026-01-14 11:14:38 +01:00
Armin Novak
4bfda1d308 [core,gateway] fix rts_read_result
Add missing defined value to pass condition
2026-01-14 11:14:38 +01:00
Armin Novak
43236f3847 [core,gateway] update p_cont_def_result_t and bind_rejection_t
* Add all currently defined values to enum p_cont_def_result_t
* Modify [MS-RPCE] 2.2.2.5 New Reasons for Bind Rejection values to
  enum, add all currently defined values
2026-01-14 11:14:32 +01:00