Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump rdp-rs #11768

Merged
merged 1 commit into from
Apr 6, 2022
Merged

Bump rdp-rs #11768

merged 1 commit into from
Apr 6, 2022

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Apr 6, 2022

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.

@@ -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));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's up with the explicit type?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rust 1.59 (which I'm running locally but we don't use for builds yet) complains about it.

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.
@zmb3 zmb3 force-pushed the zmb3/bump-rdp-rs branch from 38b4fff to 858cb46 Compare April 6, 2022 16:55
@zmb3 zmb3 enabled auto-merge (squash) April 6, 2022 17:02
@zmb3 zmb3 merged commit bf3c227 into master Apr 6, 2022
@zmb3 zmb3 deleted the zmb3/bump-rdp-rs branch April 6, 2022 17:18
zmb3 added a commit that referenced this pull request May 27, 2022
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.

Use RustCrypto/RSA instead of OpenSSL

RustCrypto is preferred, as it's a pure-Rust implementation, which
simplifies cross compilation for us and prevents us from needing to
pull in all of OpenSSL.

We originally thought that OpenSSL would be required here as RustCrypto
didn't appear to support RSA decryption without padding, but that
turned out to be false.

Remove OpenSSL dependency from the rust RDP client
zmb3 added a commit that referenced this pull request May 27, 2022
* 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.

* Use RustCrypto/RSA instead of OpenSSL

RustCrypto is preferred, as it's a pure-Rust implementation, which
simplifies cross compilation for us and prevents us from needing to
pull in all of OpenSSL.

We originally thought that OpenSSL would be required here as RustCrypto
didn't appear to support RSA decryption without padding, but that
turned out to be false.

* Remove OpenSSL dependency from the rust RDP client

Co-authored-by: Zac Bergquist <[email protected]>
Co-authored-by: Zac Bergquist <[email protected]>
LKozlowski pushed a commit that referenced this pull request Jun 7, 2022
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.
LKozlowski pushed a commit that referenced this pull request Jun 7, 2022
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.
@webvictim webvictim mentioned this pull request Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants