Commit Graph

1468 Commits

Author SHA1 Message Date
Benoît Cortier df0bf9c69d fix(pdu)!: remove unused legacy error types (#1268)
Remove GccError, McsError, RdpError, SecurityDataError,
ClusterDataError, NetworkDataError, CoreDataError, InputEventError,
ClientInfoError, CapabilitySetsError, SessionError, and ChannelError.
All encode/decode functions had already been migrated to use
DecodeResult/EncodeResult from ironrdp-core, leaving these error types
as dead code.
2026-05-13 07:10:05 -04:00
Greg Lamberson 14c55027c8 refactor(pdu): hand-roll Display/Error impls and remove thiserror dependency (#1264) 2026-05-13 06:52:22 +00:00
Greg Lamberson 68b86f2b06 feat(error): add shared bail! and ensure! macros (#1263) 2026-05-12 12:10:48 +00:00
Greg Lamberson 2e2b5edfd7 feat(error): capture core::panic::Location automatically in Error<Kind> (#1262)
Adds automatic caller location capture to `ironrdp-error::Error<Kind>` using `#[track_caller]` + `core::panic::Location::caller()`, and surfaces that location in the `Display` output while keeping `Debug` stable for cross-platform snapshots.
2026-05-12 18:07:31 +09:00
dependabot[bot] ba8b8b30f1 build(deps): bump the patch group across 1 directory with 2 updates (#1248) 2026-05-08 21:10:25 +09:00
Matthew Johnson 14b1cef9cb feat(rdpdr): add Web RDPDR virtual printer support (#1230)
Adds RDPDR virtual printer redirection for web sessions, enabling the web client to announce a redirected printer, receive server print jobs over RDPDR, and deliver completed PostScript jobs to a browser callback.
2026-05-04 06:51:59 +00:00
Mariusz Białończyk 2d4980463e feat(client): add --prevent-session-lock CLI option (#1207)
Adds a new CLI flag to prevent remote session locking by injecting fake
mouse movement events when the connection is idle, similarly to
FreeRDP's equivalent option.
2026-04-30 18:13:46 +09:00
GlassOnTin 78effb3f91 fix(connector): surface actual PDU type when an unexpected Share Control PDU arrives (#1236) 2026-04-29 11:34:43 +00:00
rhammonds-teleport 1a09dbaca9 feat(rdpdr): Notify RdpdrBackend of 'User Logged On' Messages (#1211) 2026-04-29 20:25:37 +09:00
dependabot[bot] f6fa5779a1 build(deps): bump tokio-tungstenite from 0.28.0 to 0.29.0 (#1234) 2026-04-28 16:23:44 +09:00
dependabot[bot] 4282fb22f0 build(deps): bump the patch group across 1 directory with 3 updates (#1233) 2026-04-28 16:23:12 +09:00
dependabot[bot] a5dab356e5 build(deps): bump rayon from 1.11.0 to 1.12.0 (#1235) 2026-04-28 15:59:29 +09:00
Benoît Cortier 2fa7c648cb fix(connector): advertise all colour depths per FreeRDP pattern (#1231)
Replace the per-depth supportedColorDepths bitmask with an unconditional
BPP32 | BPP24 | BPP16 | BPP15, following FreeRDP's approach of treating
the field as a capability set rather than a preferred-depth indicator
(libfreerdp/core/settings.c).

The preferred depth is expressed via the two dedicated fields:
- highColorDepth: now derived from the configured depth (15 →
Rgb555Bpp16 / 0x0F, 16 → Rgb565Bpp16 / 0x10, else Bpp24 / 0x18),
matching FreeRDP's ColorDepthToHighColor()
- WANT_32_BPP_SESSION earlyCapabilityFlag: unchanged, set only for 32bpp

Previously, a client configured for 24bpp advertised BPP24 only. Modern
Windows hosts (Server 2012+) dropped 24bpp RDP support and reset the
connection instead of negotiating down, leaving no usable depth. With
all four bits always advertised the server can freely negotiate to the
highest depth it supports.
2026-04-28 00:10:07 +09:00
dependabot[bot] 3fe6d157e0 build(deps): bump the patch group across 1 directory with 2 updates (#1222) 2026-04-21 15:06:46 +00:00
dependabot[bot] 8bf140f49d build(deps): bump tokio from 1.51.1 to 1.52.1 (#1223) 2026-04-21 11:52:07 +09:00
dependabot[bot] 901970778d build(deps): bump hyper from 1.8.1 to 1.9.0 (#1224) 2026-04-21 11:05:42 +09:00
Benoît Cortier d0e18e3693 feat: improved RDP file support (#1220)
ironrdp-rdpfile:
- ErrorKind::InvalidValue and UnknownType now carry the property key
- ErrorKind::MalformedLine carries no data (no risk of leaking secrets)
- ErrorKind::InvalidValue carries no value (no risk of leaking secrets)
- Line numbers are 1-based in all errors

ironrdp-cfg:
- Add GatewayUsageMethod, GatewayCredentialsSource, AudioMode proper
enums with TryFrom<i64> and corresponding Unknown* error types
- Add TargetAddr / TargetHost types with full IPv6 bracketing support;
ParseTargetAddrError is a Copy enum (no allocation, no sensitive data)
- Add 15+ new PropertySetExt methods: full_address,
alternate_full_address, server_port, domain, enable_credssp_support,
compression, gateway_usage_method, gateway_credentials_source,
gateway_username, gateway_password, desktop_width/height/scale_factor,
alternate_shell, shell_working_directory, redirect_clipboard,
audio_mode, kdc_proxy_name, kdc_proxy_url

ironrdp-client:
- Two-phase config parsing: PartialConfig (phase 1, no prompts) and
into_config() (phase 2, interactive prompts + strong typing)
- Logger is set up right after PartialConfig::parse_from(), before phase
2
- New --dump-rdp <path> flag: writes merged PropertySet as .rdp file and
exits immediately (between phases, no session started)
- Map .rdp file properties to Config fields: gateway host/method/creds,
desktop dimensions, clipboard redirect, audio mode, alternate shell,
shell working dir, KDC proxy, compression, CredSSP toggle, domain
- Config.kerberos_config wired through both connect() call sites
- initial_window_size derived from config desktop dimensions
- Update README with supported .rdp properties and precedence rules
2026-04-15 07:29:50 -04:00
dependabot[bot] 53d814e3ae build(deps): bump gloo-timers from 0.3.0 to 0.4.0 (#1217) 2026-04-14 08:27:08 +00:00
dependabot[bot] da4de97b95 build(deps): bump gloo-net from 0.6.0 to 0.7.0 (#1218) 2026-04-14 17:07:47 +09:00
dependabot[bot] d3e673b455 build(deps): bump tokio from 1.50.0 to 1.51.1 (#1219) 2026-04-14 17:06:14 +09:00
Gabriel Bauman 6baf726c1a docs(dvc-com-plugin): add missing README.md to unblock crates.io publish (#1213) 2026-04-10 19:23:30 +09:00
dependabot[bot] b50a934c92 build(deps): bump the patch group across 1 directory with 2 updates (#1203) 2026-04-09 22:40:02 +09:00
Greg Lamberson 1aa9af9781 refactor(server): replace wildcard re-exports with explicit item list (#1208) 2026-04-09 21:58:44 +09:00
Gabriel Bauman c98a8fb774 feat(cliprdr,web,ffi): implement clipboard file transfer support (#1166)
Add end-to-end clipboard file transfer (upload and download) across the
CLIPRDR channel per MS-RDPECLIP.
2026-04-09 14:53:39 +09:00
Greg Lamberson 9383380292 feat(session): handle slow-path graphics and pointer updates (#1132)
Adds support for slow-path graphics and pointer updates to IronRDP, fixing connectivity issues with servers like XRDP that use slow-path output instead of fast-path. The implementation parses slow-path framing headers and routes the inner payload structures through the existing fast-path processing pipeline by extracting shared bitmap and pointer processing methods.
2026-04-09 14:46:37 +09:00
Greg Lamberson 5c08c7fe3d feat(server): add ConnectionHandler trait for connection lifecycle hooks (#1194) 2026-04-08 22:44:21 +09:00
Raphaël Larivière e60500dfd4 ci: bump actions to node 24 compatible versions (#1206) 2026-04-08 10:07:53 +09:00
dependabot[bot] 1eaf333057 build(deps): bump opus2 from 0.3.3 to 0.4.0 (#1204) 2026-04-07 22:49:28 +09:00
Mariusz Białończyk e5ab22246f feat(client): add --scale-desktop CLI option for display scaling factor (#1200)
Adds a new CLI flag to control the initial RDP “desktop scale factor” sent during connection setup, enabling display scaling (useful for HiDPI/4K setups) similarly to FreeRDP’s scaling option.
2026-04-02 23:40:10 +00:00
Greg Lamberson 49099f0c31 feat(pdu,graphics): add RemoteFX Progressive codec primitives (#1196)
Add wire-format types for RemoteFX Progressive Codec (MS-RDPRFX
Progressive Extension) and the computational primitives required for progressive refinement.
2026-04-03 08:28:17 +09:00
Greg Lamberson f10625cc80 feat(server): IPv6 dual-stack and SO_REUSEADDR for run() (#1187) 2026-04-01 21:39:07 +09:00
Greg Lamberson 4dcad09980 feat(session): handle Auto-Detect Request PDUs from server (#1178)
Fixes a crash when the server sends Auto-Detect Request PDUs during an
active session. After #1176 added ShareDataPdu::AutoDetectReq routing,
these PDUs decode correctly but hit the catch-all error path in the x224
processor: "unhandled PDU: Auto-Detect Request PDU".
2026-04-01 21:22:50 +09:00
Greg Lamberson ea47bf882d feat(egfx): add send_uncompressed_frame for V8 clients (#1182)
Add `send_uncompressed_frame()` to `GraphicsPipelineServer` for sending
raw pixel data through `WireToSurface1` with `Codec1Type::Uncompressed`.
2026-04-01 20:28:49 +09:00
Greg Lamberson c70d38a9f1 build: upgrade sspi to 0.19, picky to rc.22, fix NTLM fallback (#1188) 2026-04-01 08:15:18 +09:00
Greg Lamberson 2515470fdb feat(server): add auto-detect RTT measurement (#1177)
Adds server-side RTT measurement using the protocol-standard auto-detect
mechanism (MS-RDPBCGR 2.2.14).
2026-03-31 17:42:09 +00:00
Benoît Cortier 9bb909eca2 docs: document iron-remote-desktop API design philosophy (#1192)
The core rule is: a method belongs in the base API (UserInteraction /
Session / SessionBuilder) if the web component itself needs to call it
for transparent behaviour, or if the feature is universal across all
remote protocol backends. Protocol-specific concepts must go through the
extension mechanism instead.
2026-03-31 14:35:13 +00:00
Greg Lamberson a6b41093ce feat: complete pixel format support for bitmap updates (#1134)
Wires missing bitmap pixel formats (8/15/24bpp) into the session rendering
pipeline so bitmap updates at those depths are rendered instead of being
dropped, and adds fast-path palette update parsing to support 8bpp indexed
color sessions.
2026-03-25 16:56:38 +09:00
dependabot[bot] d92dd382b3 build(deps): bump criterion from 0.5.1 to 0.8.1 (#1184) 2026-03-24 02:39:42 +00:00
dependabot[bot] b588004956 build(deps): bump the patch group across 1 directory with 2 updates (#1183) 2026-03-24 09:34:49 +09:00
Greg Lamberson c30d853fa3 feat(server): make run_connection generic over stream type (#1181)
Generalizes `RdpServer::run_connection` to accept arbitrary Tokio `AsyncRead + AsyncWrite` streams instead of a concrete `TcpStream`, enabling non-TCP transports (e.g., Unix sockets, VSOCK, in-process streams) to reuse the same server connection logic.

Co-authored-by: lamco-office <office@lamco.io>
Co-authored-by: Benoît Cortier <3809077+CBenoit@users.noreply.github.com>
2026-03-23 23:07:54 +00:00
Greg Lamberson e5f2f36e96 feat(pdu)!: route auto-detect PDUs through ShareDataPdu dispatch (#1176)
Added Share Data PDU dispatch support for auto-detect PDUs, improving compatibility with Windows servers.
2026-03-18 20:24:53 +09:00
Greg Lamberson 7f2f59a832 fix(ffi): correct FfiClipbarodMessageProxy typo (#1173) 2026-03-18 10:56:01 +09:00
Mota-Link 306da0fee2 test(rdpsnd): add client state machine tests (#1169)
Add comprehensive tests for the Rdpsnd client SvcProcessor, covering
state transitions, error paths, and renegotiation.

- Error-path tests: invalid PDU in Start/WaitingForTraining → Stop
- Happy-path tests: Ready state silent PDUs, training confirm,
renegotiation (V5/V6), repeated renegotiation stability
- Terminal state: Stop ignores all PDU types
2026-03-17 23:05:27 +09:00
Greg Lamberson 84015c9467 fix(acceptor): skip credential check when server credentials are None (#1150) 2026-03-17 22:53:15 +09:00
Greg Lamberson 5e316bba1c feat(egfx): add openh264 feature-gated H.264 decoder (#1104) 2026-03-17 16:47:18 +09:00
Greg Lamberson b6200c7a4b feat(egfx): add client-side EGFX with surface management and AVC420 decode (#1103) 2026-03-17 13:49:19 +09:00
dependabot[bot] ecc0504644 build(deps): bump the patch group across 1 directory with 3 updates (#1170) 2026-03-17 12:14:09 +09:00
dependabot[bot] ed0c26ca6a build(deps): bump reqwest from 0.12.26 to 0.12.28 (#1171) 2026-03-17 12:12:12 +09:00
Greg Lamberson bf694c8a23 feat(egfx): add QoE statistics accumulation on GraphicsPipelineServer (#1167) 2026-03-16 22:55:35 +09:00
Greg Lamberson 6e5f08a1b9 feat(pdu): add Auto-Detect Request and Response PDU types (#1168) 2026-03-16 22:54:06 +09:00