mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-12 02:15:01 +00:00
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:
Generated
+1
-1
@@ -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",
|
||||
|
||||
@@ -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"] }
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user