Commit Graph

103 Commits

Author SHA1 Message Date
irvingouj@Devolutions d3e0cb17e1 feat(ffi): expose RDCleanPath (#1014)
Add RDCleanPath support for Devolutions.IronRDP .NET package
2025-10-30 16:38:41 +00:00
Alex Yusiuk abc391c134 refactor: add partial_pub_fields clippy style and readability lint (#976) 2025-10-23 10:58:41 -04:00
Alex Yusiuk af8ebdcfa2 refactor: enable missing_panics_doc clippy lint (#1006)
> Checks the doc comments of publicly visible functions that may panic
and warns if there is no # Panics section.

Co-authored-by: Benoît Cortier <3809077+CBenoit@users.noreply.github.com>
2025-10-06 09:19:22 +00:00
Vladyslav Nikonov a660d7f960 chore(release): remove leading zero from nuget version (#1000)
leading zero in Nuget version caused CI to fail on ffi crate build:

```
 error: invalid leading zero in minor version number
 --> ffi/Cargo.toml:3:11
  |
3 | version = "2025.09.24"
  |           ^^^^^^^^^^^^
  |
error: failed to load manifest for workspace member `/Users/runner/work/IronRDP/IronRDP/ffi`
referenced by workspace at `/Users/runner/work/IronRDP/IronRDP/Cargo.toml`
```
2025-09-29 06:39:28 -04:00
Vladyslav Nikonov 3198abae2f chore(release): prepare for Devolutions.IronRdp v2025.09.24.0 (#998) 2025-09-25 08:52:17 -04:00
Alex Yusiuk 42fbd5f378 refactor: add multiple_inherent_impl clippy style and readability lint (#978)
From the lint
[documentation](https://rust-lang.github.io/rust-clippy/master/index.html#/multiple_inherent_impl):
> Checks for multiple inherent implementations of a struct
> Splitting the implementation of a type makes the code harder to
navigate.
2025-09-19 11:27:49 +00:00
Alex Yusiuk 630525deae refactor!: enable unwrap_used clippy correctness lint (#965)
Co-authored-by: Benoît CORTIER <git.divisible626@passmail.com>
2025-09-11 11:41:02 +00:00
Benoît CORTIER bd8f2743d6 chore(release): prepare for Devolutions.IronRdp v2025.10.9.0 2025-09-09 13:24:10 -04:00
Vladyslav Nikonov 17833fe009 feat: add support for DVC pipe proxy in FFI (#938) 2025-09-04 12:35:34 -04:00
Dan Share 6fab9f8228 feat: add an option to specify a timezone (#917)
Allows to pass a timezone to the remote desktop.
2025-08-20 15:40:32 +00:00
Benoît CORTIER 5d8a487001 fix: rename option no_audio_playback into enable_audio_playback 2025-08-04 06:46:10 -04:00
Benoît CORTIER 218fed03c7 fix: rename option no_server_pointer into enable_server_pointer 2025-08-04 06:46:10 -04:00
Alex Yusiuk 32b0e40eca refactor: add unused_trait_names clippy extra-pedantic lint (#900) 2025-07-31 03:57:09 -04:00
Marc-André Lureau b4fb0aa0c7 build(deps): bump thiserror to 2.0
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-07-24 06:34:50 -04:00
Pavlo Myroniuk 33530212c4 feat!: update sspi dependency (#839)
Newer version of sspi adds support for server-side Kerberos.
This is relevant for the ironrdp-acceptor crate.
2025-07-08 08:45:30 -04:00
Benoît Cortier 48e02441d2 chore: update Rust toolchain to 1.88.0 (#852)
MSRV is also bumped to 1.84.
2025-07-03 07:38:28 +03:00
Miha Markič 4260537c90 fix(ffi): avoid infinite loop in HandleClipboardEvents when not on Windows (#846)
When running on non-Windows, HandleClipboardEvents will create an
infinite loop consuming 100% CPU.
Now, we call HandleClipboardEvents only when on Windows.
2025-06-28 15:51:57 +00:00
Marc-André Lureau f03ee393a3 refactor!: add supported codecs in BitmapConfig
"session" has a fixed set of supported codecs with associated IDs.

"connector" must expose the set of codecs during capabilities exchange.
It currently uses hard-codes codec IDs in different places.

Move the BitmapCodecs set to ironrdp-pdu. Shared code will be used by
the server, so this is a suitable common place.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-05-09 09:11:45 +02:00
Benoît Cortier 712da42ded fix: inject socket local address for the client addr (#759)
We used to inject the resolved target server address, but that is not
what is expected. Server typically ignores this field so this was not a
problem up until now.
2025-04-21 09:08:50 +00:00
Zac Bergquist bdde2c76de fix(client)!: fix name of client address field (#754) 2025-04-16 04:23:49 -04:00
Marc-André Lureau 45f66117ba feat(session)!: make DecodedImage Send
This will allow to share it between different threads.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-04-08 14:37:50 +02:00
Marc-André Lureau 9f0edcc4c9 feat(client): Add no_audio_playback flag to Config struct
Enable audio playback on the client.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-04-08 13:35:44 +02:00
Benoît Cortier f62104efe6 fix(ffi): use patched diplomat (#723)
This patched version of Diplomat is backporting an important fix from
the more up to date versions of Diplomat.
Without this patch, the code generated by the diplomat::bridge macro
contains an easy to trigger UB.
This UB is triggered by the generated C# code when passing an empty
byte[] array.
2025-03-26 00:55:30 +00:00
Benoît CORTIER 1bb6895422 docs(ffi): fix compilation of examples 2025-03-25 12:26:28 +01:00
Benoît CORTIER 51c45df8c4 docs(ffi): document how to build the .NET bindings 2025-03-24 23:23:26 +01:00
Benoît CORTIER aa210204a7 chore(xtask): add ffi install task
This task is for installing all the requirements for ffi tasks.
(That is: `diplomat-tool`.)
2025-03-24 23:23:26 +01:00
Benoît Cortier c21fa44fd6 build: do not use workspace dependencies (#695)
As written in the workspace Cargo.toml:

> Note that for better cross-tooling interactions, do not use workspace
dependencies for anything that is not "workspace internal" (e.g.: mostly
dev-dependencies). E.g.: release-plz can’t detect that a dependency has
been
updated in a way warranting a version bump in the dependant if no commit
is
touching a file associated to the crate. It is technically okay to use
that
for "private" (i.e.: not used in the public API) dependencies too, but
we
still want to make follow-up releases to stay up to date with the
community,
even for private dependencies.

Expectation is that release-plz will be able to auto-detect when bumping
dependents is necessary.

Closes #689
2025-03-12 09:25:01 -04:00
dependabot[bot] 6e8a8236dc build(deps): bump SixLabors.ImageSharp from 3.1.3 to 3.1.7 in /ffi/dotnet/Devolutions.IronRdp.ConnectExample (#686) 2025-03-07 05:00:39 +00:00
Przemko Robakowski dd221bf224 feat: support license caching (#634)
Adds support for license caching by storing the license obtained
from SERVER_UPGRADE_LICENSE message and sending
CLIENT_LICENSE_INFO if a license requested by the server is already
stored in the cache.

Co-authored-by: Benoît Cortier <3809077+CBenoit@users.noreply.github.com>
2025-01-18 14:34:58 +00:00
dependabot[bot] a2378efb7a build(deps): bump embed-resource from 2.5.0 to 3.0.1 (#577) 2025-01-17 07:40:50 -05:00
Benoît Cortier 50b848529c ci(release-crates): use Devolutions/actions-public (#608) 2024-12-12 16:10:22 +00:00
Zac Bergquist 36da11c02e feat(connector): allow clients to specify the x224 nego request data (#580)
The previous code would (correctly) set a cookie containining the
username, but only when using username/password credentials. When
smart card credentials are used, the cookie would always contain
the empty string.
2024-11-19 20:44:40 -05:00
Benoît CORTIER 294af1cc5c style: cargo +nightly fmt 2024-11-20 01:28:31 +09:00
Benoît CORTIER 807eb59b07 refactor: enable clippy::std_instead_of_core lint 2024-11-20 01:28:31 +09:00
Benoît CORTIER d9b69c68f9 build: enable unused_crate_dependencies lint
All reported cases were actually unused dependencies.
2024-11-20 01:28:31 +09:00
Benoît CORTIER 9ec8f547f9 refactor: update workspace lints
This is based on the configuration we have in the Devolutions Gateway
workspace.
2024-11-20 01:28:31 +09:00
Benoît Cortier 5831547811 build(ffi): enable required feature from ironrdp (#572)
This feature used to be enabled by default, but it's not anymore.
2024-11-04 18:27:55 +00:00
dependabot[bot] f953889b72 build(deps): bump embed-resource from 2.4.3 to 2.5.0 (#555)
Bumps [embed-resource](https://github.com/nabijaczleweli/rust-embed-resource) from 2.4.3 to 2.5.0.
- [Release notes](https://github.com/nabijaczleweli/rust-embed-resource/releases)
- [Commits](https://github.com/nabijaczleweli/rust-embed-resource/compare/v2.4.3...v2.5.0)

---
updated-dependencies:
- dependency-name: embed-resource
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-01 05:24:40 -04:00
Benoît Cortier a002057016 chore: update .NET bindings (#551) 2024-09-23 05:46:33 -04:00
Zac Bergquist b55924ee0a fix: save the disconnect reason from the set error info PDU (#547)
The Set Error Info PDU is sent as a precursor to a server-side
disconnect and informs the client of the reason for the disconnection
which will follow. Once this PDU has been processed, the client MUST
store the error code so that the reason for the server disconnect
which will follow can be accurately reported to the user.
2024-09-23 01:15:42 -04:00
Marc-André Lureau 23bc008d65 refactor(core): move {Decode/Encode}Error
& document the public API.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-08-30 00:05:16 -04:00
Marc-André Lureau b4c4b7ef58 chore(pdu): introduce DecodeResult
Introduce a new error type to split encoding/decoding errors as well as
helper traits and functions to ease porting and conventions.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-08-30 00:05:16 -04:00
Marc-André Lureau 278a0506c2 refactor(core): move WriteBuf
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-08-30 00:05:16 -04:00
Benoît Cortier 703b245993 ci(nuget-publish): downgrade to NDK 26.x (#540) 2024-08-29 07:41:30 -04:00
Marc-André Lureau 46b703e813 refactor(pdu): return whether hint::find_size() matches the expected hint
When compiled in debug mode, the code checks the expected Action hint.
But in release mode, no checks are done and the it will have to fail
later.

Instead, return whether the PDU is matching the hint, so the caller can
decide what to do in this case.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-08-19 06:44:15 -04:00
Sandeep Bansal d8e21b0bd4 fix!: remove dependency on ClientConnector in CredsspSequence (#519) 2024-08-16 13:09:02 -04:00
Marc-André Lureau 1a878d950a chore(deps): use common workspace windows version
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-08-11 22:26:02 -04:00
Marc-André Lureau cfd60a1412 refactor(cliprdr-native): bump windows dep to 0.58
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-08-11 22:26:02 -04:00
Marc-André Lureau 8f14abdf1e feat(cliprdr-native): drop need for win32 HWND instance
Create a hidden window instead. This allows for easier setup of
clipboard channels while the GUI may not be ready yet.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-08-11 22:26:02 -04:00
Marc-André Lureau 7307148cb8 chore: use workspace lints
Among other things, this allows tools and LSP to pick up our settings.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-07-24 04:35:32 -04:00