Commit Graph

1534 Commits

Author SHA1 Message Date
Claude 4f01653c70 feat(connector): add Hyper-V VMConnect support
Allow connecting to a Hyper-V virtual machine (VMConnect) by setting the
new `vmconnect` field of the connector `Config` to the target VM ID.

When set, the connection sequence follows the flow expected by Hyper-V
hosts instead of the regular one:

1. A V2 preconnection blob containing "<vm-id>;EnhancedMode=1" is sent
   (new `PreconnectionBlob` initial connector state).
2. The security upgrade (TLS) and CredSSP are performed immediately.
3. The X.224 connection initiation is only performed afterwards, over
   the secured channel, without a routing cookie.

The regular (non-VMConnect) sequence is unchanged.

Additionally, the extended client info packet now always encodes the
auto-reconnect cookie length (empty when unset) and the reserved1 and
reserved2 fields once the performance flags are present, as some servers
(e.g. Hyper-V hosts) expect them. The decoder already accepted them.

The `--vmconnect <ID>` CLI option is added to ironrdp-viewer, and a
`vmconnect` config setter is exposed through the FFI.

https://claude.ai/code/session_01YR2dvq8AVtyMb6F4XKeZAZ
2026-06-10 16:02:49 +00:00
uchouT 90461444f9 refactor(rdpeusb): split PDU and TS_URB enum wrapper (#1321)
Signed-off-by: uchouT <i@uchout.moe>
2026-06-08 18:46:37 +09:00
Greg Lamberson 8a3b126396 feat(server): add CredentialValidator trait for server-side auth (#1172) 2026-06-05 11:24:08 +09:00
uchouT f21470c6dc fix(dvc)!: add channel_id parameter to DvcChannelListener::create (#1358)
Updates the dynamic virtual channel (DVC) client listener interface in ironrdp-dvc to pass the channel_id (from the incoming DYNVC_CREATE_REQ) into the listener’s create method, enabling listeners to differentiate/control per-instance behavior based on the negotiated dynamic channel ID.
2026-06-02 20:41:48 +09:00
clintcan ef20ea4e90 fix(session): decode RGBA QOI bitmaps instead of dropping the frame (#1341)
Fixes the client-side QOI decode path in ironrdp-session so RGBA-channel QOI frames are decoded and applied to the framebuffer instead of being dropped, improving interoperability with third-party RDP servers and older ironrdp-server builds that emit RGBA QOI.
2026-06-02 04:11:00 +09:00
Greg Lamberson 1534d1b40e fix(egfx)!: make DecodedFrame fields private with getters to enforce size invariant (#1331) 2026-06-02 01:40:11 +09:00
Greg Lamberson 479a13aa49 feat(egfx): cascade Arbitrary derives across ironrdp-egfx public PDU types (#1334) 2026-06-02 01:37:30 +09:00
clintcan 8a9ee6268c fix(server): emit RGB-channel QOI for opaque captures so ironrdp-session can decode (#1335) 2026-06-02 01:13:35 +09:00
clintcan 7894d9f093 docs(rdpsnd): document RdpsndServerHandler::start wFormatNo contract (#1343)
Adds Rustdoc documentation to `RdpsndServerHandler`, focusing on the contract for `start()`’s `Option<u16>` return value so implementers correctly compute `wFormatNo` for Wave/Wave2 PDUs.
2026-06-02 01:04:07 +09:00
Greg Lamberson 4e11a17617 fix(graphics): bound ZGFX compressor hash table size (#1344)
Bounds the ZGFX compressor's hash table to prevent O(n·table_size) per-frame compaction on incompressible payloads (e.g., already-encoded H.264). Previously, `compact_hash_table` only halved per-prefix position lists without reducing prefix count, so high-entropy input kept the table above the cap and triggered compaction on every literal byte. The fix evicts whole least-recently-seen prefixes down to a low watermark (half the cap), amortizing compaction to O(1) per byte while preserving reachable matches (distance is already capped at `MAX_MATCH_DISTANCE`).
2026-06-02 00:48:59 +09:00
clintcan 54af8f677f feat(nscodec): introduce ironrdp-nscodec crate + opt-in server integration (#1332)
Adds an opt-in implementation of the legacy RDP NSCodec encoder as a standalone crate, and wires it into `ironrdp-server` behind a feature flag so servers can serve NSCodec-only clients (notably macOS Microsoft Remote Desktop / Windows App) without default-build behavior changes.
2026-06-02 00:39:43 +09:00
Greg Lamberson cf51bdd1d5 feat(egfx)!: surface total_frames_decoded on the frame-ack callback (#1345) 2026-06-01 15:27:37 +00:00
Benoît Cortier e3dc0e70d0 chore(release): prepare ironrdp-egfx release (#1355) ironrdp-str-v0.1.1 ironrdp-rdpdr-native-v0.6.0 ironrdp-futures-v0.7.0 ironrdp-cliprdr-format-v0.2.0 ironrdp-dvc-com-plugin-v0.1.1 ironrdp-rdpsnd-native-v0.6.0 ironrdp-tls-v0.2.1 ironrdp-dvc-pipe-proxy-v0.4.0 ironrdp-v0.15.0 ironrdp-session-v0.9.0 ironrdp-bulk-v0.1.1 ironrdp-server-v0.11.0 ironrdp-egfx-v0.1.0 ironrdp-cliprdr-native-v0.6.0 ironrdp-blocking-v0.9.0 2026-06-01 09:00:10 -04:00
Alex Yusiuk 3905d177f2 build(web): pass extra optimization flags for WASM release build (#1342)
Co-authored-by: Alexandr Yusuk <aleksandr.yusuk@apriorit.com>
2026-05-30 01:53:40 +09:00
devolutionsbot 7dd4db0f62 chore(release): prepare for publishing (#1212) ironrdp-tokio-v0.9.0 ironrdp-ainput-v0.6.0 ironrdp-rdpsnd-v0.8.0 ironrdp-rdpdr-v0.6.0 ironrdp-input-v0.6.0 ironrdp-graphics-v0.8.0 ironrdp-echo-v0.2.0 ironrdp-displaycontrol-v0.6.0 ironrdp-dvc-v0.6.0 ironrdp-cliprdr-v0.6.0 ironrdp-acceptor-v0.9.0 ironrdp-async-v0.9.0 ironrdp-connector-v0.9.0 ironrdp-svc-v0.7.0 ironrdp-pdu-v0.8.0 ironrdp-core-v0.2.0 ironrdp-error-v0.2.0 iron-remote-desktop-v0.7.1 2026-05-28 15:49:11 +00:00
Greg Lamberson 059ca902a5 feat(pdu,graphics,egfx): add ClearCodec bitmap compression codec (#1174) ironrdp-str-v0.1.0 ironrdp-dvc-com-plugin-v0.1.0 2026-05-27 22:54:54 +09:00
Greg Lamberson ad3a84295a test(fuzz): add egfx_round_trip oracle and target (#1317) 2026-05-27 22:49:35 +09:00
Benoît Cortier 30a79a0413 chore: remove code coverage pipeline (#1324)
The cargo-llvm-cov + grcov coverage report pipeline has been broken for
a while and is no longer used. Drop the GitHub Actions workflow, the
`cargo xtask cov` subcommands and module, the pinned tool versions, and
the related `.gitignore` and AGENTS.md entries.
2026-05-27 13:29:13 +00:00
clintcan aa7ff679b9 feat(server): handle SuppressOutput / RefreshRectangle and expose state (#1319) 2026-05-27 22:22:27 +09:00
Benoît Cortier e45f68c7e5 fix(web-client): add repository metadata to published package.json (#1323)
npm's sigstore provenance verification rejected publishing with:

    E422 Unprocessable Entity - Error verifying sigstore provenance
    bundle: "repository.url" is "", expected to match
    "https://github.com/Devolutions/IronRDP" from provenance

Add `repository`, `homepage`, `bugs`, and `license` fields to the
`public/package.json` of both `iron-remote-desktop` and
`iron-remote-desktop-rdp` so the published tarballs satisfy npm's
provenance checks.
npm-iron-remote-desktop-v0.11.0 npm-iron-remote-desktop-rdp-v0.7.0
2026-05-27 12:22:19 +00:00
Norbert Schultz d5b3fa7db8 build(deps): bump sspi 0.21 / picky rc.23 for released RustCrypto (#1296) 2026-05-27 09:35:31 +00:00
clintcan 5d10391485 test(cliprdr): cover Preferred DropEffect advertise + inline DROPEFFECT_COPY response (#1308)
Co-authored-by: Clint Christopher Canada <clint.canada@clubitech.com>
2026-05-27 09:25:21 +00:00
Greg Lamberson a71567e35e fix(pdu): cover BitmapCacheV3 in CapabilitySet encoder (#1313)
`CapabilitySet::BitmapCacheV3(Vec<u8>)` is in the enum, is decoded by
the `BitmapCacheV3CodecID` arm, and is covered in `size()`, but was
missing from both the outer and inner `match` of the `Encode` impl, so
re-encoding a decoded `BitmapCacheV3` capability set hit the catch-all
`_ => unreachable!()` and panicked.
2026-05-27 17:22:11 +09:00
Dion Gionet Mallet f9abc9eed7 ci: setup Node.js 24 (#1318)
Should fix issues related to trusted publishing
2026-05-27 17:04:38 +09:00
Copilot 361bdc2fe8 feat: split ironrdp-client into a reusable library + ironrdp-viewer binary (#1309) 2026-05-26 16:15:38 +00:00
Benoît Cortier 1f39e3540d chore(release): prepare web packages for publishing (#1312)
* iron-remote-desktop v0.11.0
* iron-remote-desktop-rdp v0.7.0
2026-05-26 14:38:42 +00:00
uchouT 196d18dfaa feat(dvc): close channel API for server and client (#1302) 2026-05-26 16:54:46 +09:00
dependabot[bot] 9d12adab8e build(deps): bump log from 0.4.29 to 0.4.30 in the patch group across 1 directory (#1310) 2026-05-26 16:37:28 +09:00
Benoît Cortier 879ffed866 feat(client): add --desktop-width and --desktop-height CLI options (#1307)
Allow specifying the desired desktop resolution for the RDP session
directly from the command line, mapping to the `desktopwidth` and
`desktopheight` property set entries.
2026-05-25 15:00:02 +00:00
Benoît Cortier 91ea46bd90 fix(egfx)!: separate wire-level RawCapabilitySet from typed CapabilitySet (#1305) 2026-05-25 14:38:03 +00:00
clintcan a4bc475360 feat(cliprdr): add CliprdrBackend::on_format_list_response(ok) hook (#1300) 2026-05-25 13:59:18 +00:00
Greg Lamberson 3dae1fbacc test(fuzz): add egfx PDU decoders to pdu_decode oracle + fix two surfaced bugs (#1271) 2026-05-25 22:54:24 +09:00
Greg Lamberson 424590ac76 fix(server): drop raw user_data dump from McsMessage::SendDataRequest debug log (#1295) 2026-05-25 22:51:49 +09:00
clintcan 5375bbb9dd feat(cliprdr): advertise Preferred DropEffect alongside FileGroupDescriptorW (#1301)
`initiate_file_copy` now advertises **both** `FileGroupDescriptorW` and
`Preferred DropEffect` (`CFSTR_PREFERREDDROPEFFECT`) in the FormatList,
and `handle_format_data_request` short-circuits a request for the latter
with `DROPEFFECT_COPY` (0x00000001 LE).
2026-05-25 22:50:32 +09:00
clintcan 7e0bfd3c55 feat(cliprdr): always set FD_PROGRESSUI in FileDescriptor::encode (#1299) 2026-05-25 22:38:01 +09:00
Greg Lamberson 905a148604 fix(rdpsnd-native): allocate Opus PCM buffer as Vec<i16> to avoid alignment panic (#1256) 2026-05-25 22:35:40 +09:00
Greg Lamberson 6d43d2692d feat(graphics,egfx): add progressive RFX server encode and mixed-codec frames (#1198) 2026-05-25 22:20:40 +09:00
Greg Lamberson 610cfd0742 test(fuzz): add pdu_round_trip oracle and target (#1291) 2026-05-25 22:12:14 +09:00
uchouT 894007448a refactor(rdpeusb): centralize SHARED_MSG_HEADER validation (#1294) 2026-05-25 22:10:05 +09:00
Eitvilas 0bbffcd0ec fix(web): include Meta keys in WebKit scancode dispatch (#1304) 2026-05-25 11:27:04 +00:00
Greg Lamberson 491b91fd2f fix(pdu)!: remove ironrdp-egfx duplicates from ironrdp-pdu (#1303) 2026-05-25 20:13:47 +09:00
clintcan 67f3c63573 fix(egfx): tolerate unknown capability versions instead of failing decode (#1298) 2026-05-25 15:26:09 +09:00
Krista House c56ea16d05 fix(remote-desktop): resolve Firefox stuck right-click via mouse state reconciliation (#1297)
### Summary

Fixed a Firefox-specific issue where right-clicking inside the remote
desktop canvas could leave the server-side right mouse button state
stuck as pressed.

### Changes
**Input cleanup**
- `onmouseleave` now releases all active inputs through `mouseOut()`
- Added `focusLost()` handling for:
  - window `blur`
  - document `visibilitychange`
- This ensures inputs are released when the user leaves the canvas,
switches tabs, or the browser loses focus

**Mouse state reconciliation**
Updated `mouseIn()` to compare e`vent.buttons` against tracked
server-side button state.
If the browser no longer reports a button as held, the service releases
it server-side.

This covers:
1. left button
2. right button
3. middle button

Releases are batched into a single `applyInputs` call.

**Listener cleanup**
- Hoisted `captureKeys` so it can be properly removed
- `onDestroy` now removes:
  - keydown
  - keyup
  - blur
  - visibilitychange

**Tests**
Added `mouseInput.test.ts` covering:
- `mouseOut`
- `focusLost`
- `mouseIn` reconciliation
- missing-session guards
- release batching
- no-op behavior when no release is required
2026-05-22 16:21:37 -04:00
clintcan 6e8479763f fix(server): keep newest queued waves on per-batch overflow (#1276) 2026-05-21 15:09:52 +00:00
Copilot 0dd7c94ba2 fix(xcrush): off-by-one in forward match loop causes panic during compression (#1293)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: CBenoit <3809077+CBenoit@users.noreply.github.com>
2026-05-21 18:04:46 +03:00
Greg Lamberson 109d9983bb refactor(core): replace wildcard re-exports with explicit lists (#1270) 2026-05-22 00:03:47 +09:00
Greg Lamberson a142799d1d feat(graphics,egfx): add progressive RFX decode and EGFX integration (#1197) 2026-05-21 23:43:47 +09:00
Benoît Cortier 5663ce206a ci(fuzz): discover fuzz targets dynamically (#1290)
Mirror the `check features` pattern: expose `cargo xtask fuzz list`
(with `--format github-matrix`) that enumerates fuzz targets by scanning
`fuzz/fuzz_targets/*.rs`, and have the fuzz workflow build its matrix
from that output. New targets dropped into the directory are picked up
by CI automatically, with no workflow edits required.
2026-05-20 15:06:55 +00:00
Greg Lamberson a8a813a22d feat(fuzz): add bulk decompression fuzz targets (MPPC, NCRUSH, XCRUSH) (#1285) 2026-05-20 22:35:54 +09:00
Greg Lamberson 2f9238810d refactor(egfx)!: mark consumer-facing types as #[non_exhaustive] for pre-publish API stability (#1284) 2026-05-20 16:14:51 +09:00