Bump rdp-rs (#11768)

I had made some changes to rdp-rs to expose new flags for tweaking
some performance characteristics, but never got around to pulling
in the update here.

Fix this now so as not to block upcoming work the team is doing
on rdp-rs.
This commit is contained in:
Zac Bergquist
2022-04-06 17:18:43 +00:00
committed by GitHub
parent dfa4701dc0
commit bf3c227933
3 changed files with 8 additions and 3 deletions
Generated
+1 -1
View File
@@ -928,7 +928,7 @@ dependencies = [
[[package]]
name = "rdp-rs"
version = "0.1.0"
source = "git+https://github.com/gravitational/rdp-rs?rev=cb61119d2803f647b60e6c9b2ef05ab587cc1966#cb61119d2803f647b60e6c9b2ef05ab587cc1966"
source = "git+https://github.com/gravitational/rdp-rs?rev=f51222e7edeaf2954e2c02db3506aa36e02304ca#f51222e7edeaf2954e2c02db3506aa36e02304ca"
dependencies = [
"bufstream",
"byteorder",
+1 -1
View File
@@ -23,5 +23,5 @@ num-traits = "0.2.14"
openssl = { version = "0.10.38", features = ["vendored"] }
rand = { version = "0.8.5", features = ["getrandom"] }
rand_chacha = "0.3.1"
rdp-rs = { git = "https://github.com/gravitational/rdp-rs", rev = "cb61119d2803f647b60e6c9b2ef05ab587cc1966" }
rdp-rs = { git = "https://github.com/gravitational/rdp-rs", rev = "f51222e7edeaf2954e2c02db3506aa36e02304ca" }
uuid = { version = "0.8.2", features = ["v4"] }
+6 -1
View File
@@ -213,7 +213,7 @@ fn connect_rdp_inner(
)?;
// Generate a random 8-digit PIN for our smartcard.
let mut rng = rand_chacha::ChaCha20Rng::from_entropy();
let pin = format!("{:08}", rng.gen_range(0..99999999));
let pin = format!("{:08}", rng.gen_range(0i32..=99999999i32));
sec::connect(
&mut mcs,
&domain.to_string(),
@@ -223,6 +223,11 @@ fn connect_rdp_inner(
// InfoPasswordIsScPin means that the user will not be prompted for the smartcard PIN code,
// which is known only to Teleport and unique for each RDP session.
Some(sec::InfoFlag::InfoPasswordIsScPin as u32 | sec::InfoFlag::InfoMouseHasWheel as u32),
Some(
sec::ExtendedInfoFlag::PerfDisableCursorBlink as u32
| sec::ExtendedInfoFlag::PerfDisableFullWindowDrag as u32
| sec::ExtendedInfoFlag::PerfDisableMenuAnimations as u32,
),
)?;
// Client for the "global" channel - video output and user input.
let global = global::Client::new(