aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/login/serverbound_hello_packet.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-26 13:45:48 -0500
committermat <github@matdoes.dev>2022-05-26 13:45:48 -0500
commit1e145a82b80fb0402e8a64624454d9bfee77bc72 (patch)
treeffb016cd6369bf0fbbf3545408f6278d47509a86 /azalea-protocol/src/packets/login/serverbound_hello_packet.rs
parent3fbbb61c30f0833dd1e07802419ee91ef6cad8e3 (diff)
downloadazalea-drasl-1e145a82b80fb0402e8a64624454d9bfee77bc72.tar.xz
1.19
Diffstat (limited to 'azalea-protocol/src/packets/login/serverbound_hello_packet.rs')
-rwxr-xr-xazalea-protocol/src/packets/login/serverbound_hello_packet.rs15
1 files changed, 13 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/login/serverbound_hello_packet.rs b/azalea-protocol/src/packets/login/serverbound_hello_packet.rs
index 5cb660ed..46fb665e 100755
--- a/azalea-protocol/src/packets/login/serverbound_hello_packet.rs
+++ b/azalea-protocol/src/packets/login/serverbound_hello_packet.rs
@@ -1,7 +1,18 @@
use packet_macros::{LoginPacket, McBuf};
-use std::hash::Hash;
-#[derive(Hash, Clone, Debug, McBuf, LoginPacket)]
+#[derive(Clone, Debug, McBuf, LoginPacket)]
pub struct ServerboundHelloPacket {
pub username: String,
+ pub public_key: Option<ProfilePublicKeyData>,
+}
+
+pub struct ProfilePublicKey {
+ pub data: ProfilePublicKeyData,
+}
+
+#[derive(Clone, Debug, McBuf)]
+pub struct ProfilePublicKeyData {
+ pub expires_at: u64,
+ pub key: Vec<u8>,
+ pub key_signature: Vec<u8>,
}