Skip to content

Commit

Permalink
Bump prost-types from 0.7.0 to 0.8.0 (#38)
Browse files Browse the repository at this point in the history
* Bump prost-types from 0.7.0 to 0.8.0

Bumps [prost-types](https://github.com/tokio-rs/prost) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/tokio-rs/prost/releases)
- [Commits](tokio-rs/prost@v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: prost-types
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update other deps and change code to accommodate

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: lhchavez <[email protected]>
  • Loading branch information
dependabot[bot] and lhchavez authored Sep 12, 2024
1 parent 8ab4c2d commit 7248859
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 28 deletions.
102 changes: 81 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ base64 = "0.13.0"
byte-slice-cast = "1.0.0"
bytes = "1.0.1"
chrono = "0.4"
cipher = "*"
cipher = "0.4"
clap = "2.33"
des = "0.6.0"
des = "0.8"
env_logger = "*"
futures = "0.3.12"
http = "0.2"
Expand All @@ -24,8 +24,8 @@ log = "*"
opus = "0.2.1"
paseto = { version = "2.0.2+1.0.3", features = ["v2"] }
path-clean = "0.1"
prost = "0.7"
prost-types = "0.7"
prost = "0.8"
prost-types = "0.8"
psimple = { package = "libpulse-simple-binding", version = "2.20.1" }
pulse = { package = "libpulse-binding", version = "2.20.0" }
rand = "0.8.2"
Expand Down
6 changes: 3 additions & 3 deletions src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::collections::HashMap;

use anyhow::{anyhow, bail, Context, Result};
use bytes::BytesMut;
use des::cipher::{BlockCipher, NewBlockCipher};
use cipher::{BlockEncrypt, KeyInit};
use futures::{SinkExt, StreamExt};
use tokio::io::{AsyncReadExt, AsyncWriteExt};
use tokio_tungstenite::tungstenite::protocol::Message as WebSocketMessage;
Expand Down Expand Up @@ -487,9 +487,9 @@ fn vnc_des_encrypt(password: &str, buf: &mut [u8]) {
x >>= 1;
}
}
let des = des::Des::new(cipher::block::Key::<des::Des>::from_slice(&key));
let des = des::Des::new(cipher::Key::<des::Des>::from_slice(&key));
for i in (0..buf.len()).step_by(8) {
des.encrypt_block(cipher::block::Block::<des::Des>::from_mut_slice(
des.encrypt_block(cipher::Block::<des::Des>::from_mut_slice(
&mut buf[i..i + 8],
));
}
Expand Down

0 comments on commit 7248859

Please sign in to comment.