Commit Graph

6781 Commits

Author SHA1 Message Date
akallabeth
197ac61dda [core,gateway] remove redundant casts 2025-11-11 12:35:33 +01:00
akallabeth
6414d81a58 codespell 2025-11-11 08:48:22 +01:00
akallabeth
a57950c576 [gateway,arm] improve logging of arm responses 2025-11-07 11:22:09 +01:00
akallabeth
021356cb08 [gateway,http] change return type of http_response_get_body
the data is a string, so avoid unnecessary casts later on.
2025-11-07 11:21:13 +01:00
akallabeth
33097cbde4 Merge pull request #11984 from akallabeth/http-request-improve
Http request improvements
2025-11-07 10:55:33 +01:00
akallabeth
c69aaef8e8 [gateway,arm] improve logging and url detection 2025-11-07 09:51:25 +01:00
akallabeth
f232d2ad55 [gateway,websocket] make x-ms-user-agent optional 2025-11-07 09:51:21 +01:00
akallabeth
35ad10c345 [gateway,websocket] use a dynamic logger 2025-11-07 09:51:19 +01:00
akallabeth
32aa6d6e8f [gateway,http] improve header handling
In http context store header values in a hash table. This simplifies
handling of currently known and custom http headers.
2025-11-07 09:51:16 +01:00
akallabeth
af0d0cfb67 Revert "[core,gateway] improve arm transport"
This reverts commit 6c0a302083.
2025-11-07 08:32:48 +01:00
akallabeth
2dbc042ea7 Merge pull request #11971 from akallabeth/cookie-improve
[core,gateway] improve response cookie handling
2025-11-05 09:03:33 +01:00
akallabeth
5d237bbadd [cache,glyph] overallocate for off by one index get 2025-11-05 09:01:28 +01:00
akallabeth
c978c64162 [core,gateway] improve response cookie handling
* extract cookies from responses
* append to http context for new requests
2025-10-31 11:36:19 +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
6c0a302083 [core,gateway] improve arm transport 2025-10-28 11:57:27 +01:00
Richard Markiewicz
5066253685 [crypto,x509] set comparison function for sk_ASN1_OBJECT_find in EKU check 2025-10-28 11:57:25 +01:00
akallabeth
08b00be412 [core,gateway] set user agent for websocket 2025-10-28 11:13:58 +01:00
akallabeth
e9890c3960 [core,gateway] add http_request_append_header 2025-10-28 11:13:55 +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
akallabeth
3975fe7c25 [core,timer] ensure all scheduled timers are handled
Timers might be delayed, so loop over all expired timers until none are
left.
2025-10-20 21:54:17 +02:00
akallabeth
4486b1a492 [crypto,tls] make cert warning more accurate 2025-10-20 18:30:20 +02:00
akallabeth
ea37497a55 Merge pull request #11930 from eduar-hte/avc444-align32
Align width and height for AVC444 decoding to 32
2025-10-20 11:09:47 +02:00
Olivier Blin
7855417c10 [crypto,x509] add missing OpenSSL include for d2i_RSA_PSS_PARAMS 2025-10-17 14:59:07 +02:00
eduar-hte
387fa0201a [codec,yuv] Align width and height for AVC444 decoding to 32
- Windows seems to be aligning to 32 in current versions of RDP, which
  can be noticed in non-standard resolutions (that are not multiple of
  32 after aligning to 16).
- 16-byte alignment was initially introduced in commit 8adc2ba
2025-10-14 20:01:17 +00:00
akallabeth
e7b5ac7c73 [core,timer] fix reschedule interval
time was calculated in µs instead of ms.
@vokov0aa thank you for the hint
2025-10-10 10:23:57 +02:00
akallabeth
3cfcb4c9ca [core,tcp] fix a regression
with 2e5de43564 a bug was introduced
disabling the TCP buffering. revert that.
2025-10-06 18:59:46 +02:00
akallabeth
eae2e03adf [codec,ffmpeg] fix missing const argument 2025-10-06 08:43:15 +02:00
akallabeth
fc3aa65348 [gdi] improve codec logging 2025-10-06 08:42:49 +02:00
akallabeth
fc2ae4cf41 [core,codecs] add stringify helper
add freerdp_codec_id_to_str to get a string representation of a given
codec id
2025-10-06 08:41:18 +02:00
Armin Novak
9fc79f7e90 [core,rdstls] improve logging 2025-10-02 15:59:16 +02:00
akallabeth
621e089768 Merge pull request #11912 from FriederHannenheim/master
dsp_ffmpeg: fix latency buildup during resampling
2025-10-02 15:59:03 +02:00
Armin Novak
56dc5efe1e [core,rdstls] improve return code mapping 2025-10-02 15:18:47 +02:00
Frieder Hannenheim
137268b8d7 dsp_ffmpeg: fix latency buildup during resampling 2025-10-02 15:12:01 +02:00
Armin Novak
ad8780c823 [core,test] fix TestSettings
Fill values with base64 encoded random data. Some fields are strings
that need to be valid utf-8.
2025-10-01 09:38:47 +02: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
Armin Novak
82b86babe5 [common,test] test freerdp_target_net_addresses_resize
Add a unit test to check the expected behaviour of
freerdp_target_net_addresses_resize matches the implementation.
2025-09-30 16:05:36 +02:00
Armin Novak
8735c50e2f [codec,interleaved] add some unit tests
* Create a unit test framework to allow compaing some input data to
  expected output data
* Add a couple of test cases for encoder and decoder
* Add expected output data (of current implementation) to detect changes
  in later iterations
2025-09-30 14:09:15 +02:00
Armin Novak
5fed3f4cfc [codec,bitmap] fix sign of buffer
* Use a uint8_t buffer to avoid issues with casting to/from signed
* Refactor bitmap codec
2025-09-30 14:07:24 +02:00
Armin Novak
4aceae4666 [codec,color] Add from string method for PIXEL_FORMAT
* Add FreeRDPGetColorFromatFromName to get a PIXEL_FORMAT from a given
  string.
* Add a unit test to ensure FreeRDPGetColorFromatFromName and
  FreeRDPGetColorFormatName work as expected
2025-09-30 13:17:26 +02:00
akallabeth
611dd58bc7 [core,transport] fix inverted condition 2025-09-29 11:56:51 +02:00
akallabeth
6c5fc3623e [core,arm] fix TargetNetAddress size and checks
* Allocate for maximum expected values
* Add checks during parsing to not exceed limits
2025-09-29 11:25:11 +02: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
9677931343 [core,arm] fix domain setting
While AzureAD seems to be required for many setups, some need an empty
domain (or maybe a different all together?)
So only provide a sane default and allow user override.
2025-09-29 10:17:01 +02:00
akallabeth
c6356ef836 [core,nego] add helper nego_rdp_neg_fail_str 2025-09-26 13:14:50 +02:00
akallabeth
74648eb3a9 [c,standard] use C99 inline 2025-09-26 11:29:26 +02:00
akallabeth
1baa721961 [core] fix const correctness
Make function arguments const if possible.
2025-09-26 11:18:57 +02:00
akallabeth
53d63b3120 [core,arm] add TARGET_BOOTING error code
Propagate the error code for a VM still booting to client.
2025-09-26 10:13:46 +02:00
Armin Novak
fe31f84835 [core,gateway] fix cast warning 2025-09-25 16:17:09 +02:00
Armin Novak
f91cb45329 [core,wst] handle unexpected HTTP status return
Set last error according to received HTTP status
2025-09-25 11:19:09 +02:00