Add back pow_response and crypto_response

Probably was accidentally removed in
3662302196

Signed-off-by: Ovenoboyo <ovenoboyo@gmail.com>
This commit is contained in:
Ovenoboyo 2023-01-21 21:56:50 +05:30
parent 4a4596feb2
commit 7a4807eb8a
No known key found for this signature in database
GPG key ID: EE08BFEA6B959F09

View file

@ -214,6 +214,9 @@ where
.mut_or_insert_default()
.set_hmac(challenge);
packet.pow_response.mut_or_insert_default();
packet.crypto_response.mut_or_insert_default();
let mut buffer = vec![];
let size = 4 + packet.compute_size();
<Vec<u8> as WriteBytesExt>::write_u32::<BigEndian>(&mut buffer, size.try_into().unwrap())?;