Merge pull request #1108 from Ovenoboyo/dev

Add back pow_response and crypto_response
This commit is contained in:
Roderick van Domburg 2023-01-21 18:08:10 +01:00 committed by GitHub
commit e9dbdfed25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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())?;