We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b23441b commit 34f7a69Copy full SHA for 34f7a69
src/packets/encryption_response.rs
@@ -1,14 +1,9 @@
1
+use crate::byte_buf_utils::read_varint;
2
use anyhow::Result;
3
use bytes::BytesMut;
4
-use crate::byte_buf_utils::read_varint;
5
-
6
-#[allow(dead_code)]
7
pub struct EncryptionResponsePacket {
8
- pub shared_secret_length: usize,
9
pub shared_secret: Vec<u8>,
10
11
- pub verify_token_length: usize,
12
pub verify_token: Vec<u8>,
13
}
14
@@ -21,9 +16,7 @@ impl EncryptionResponsePacket {
21
16
let verify_token = buff.split_to(verify_token_length);
22
17
23
18
Ok(Self {
24
- shared_secret_length,
25
19
shared_secret: shared_secret.to_vec(),
26
- verify_token_length,
27
20
verify_token: verify_token.to_vec(),
28
})
29
0 commit comments