server hello: fix handshake length

master
occheung 2020-11-27 09:43:51 +08:00
parent ab5719ed44
commit 3ba03819d4
2 changed files with 2 additions and 1 deletions

View File

@ -464,7 +464,7 @@ impl<'s> TlsSocket<'s> {
let slice: &[u8] = buffer.into();
// Update session
todo!();
// todo!();
// Send the data
(slice.len(), ())

View File

@ -105,6 +105,7 @@ impl<'a> TlsRepr<'a> {
)
}
);
repr.length = repr.handshake_data.get_length().try_into().unwrap();
repr
};
self.length = handshake_repr.get_length();