Set length range for verify_token to (4, 16) (#143)

Notchian servers [ALWAYS](https://wiki.vg/Protocol#Encryption_Request)
have a `verify_token` length of 4.
This PR updates the range of the `BoundedArray` to support this.
This commit is contained in:
Gijs de Jong 2022-10-29 23:23:22 +02:00 committed by GitHub
parent e80bbc22b3
commit 7e24cf014c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ pub mod login {
server_id: BoundedString<0, 20>,
/// The RSA public key
public_key: Vec<u8>,
verify_token: BoundedArray<u8, 16, 16>,
verify_token: BoundedArray<u8, 4, 16>,
}
}