server hello: fix handshake length
This commit is contained in:
parent
ab5719ed44
commit
3ba03819d4
@ -464,7 +464,7 @@ impl<'s> TlsSocket<'s> {
|
|||||||
let slice: &[u8] = buffer.into();
|
let slice: &[u8] = buffer.into();
|
||||||
|
|
||||||
// Update session
|
// Update session
|
||||||
todo!();
|
// todo!();
|
||||||
|
|
||||||
// Send the data
|
// Send the data
|
||||||
(slice.len(), ())
|
(slice.len(), ())
|
||||||
|
@ -105,6 +105,7 @@ impl<'a> TlsRepr<'a> {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
repr.length = repr.handshake_data.get_length().try_into().unwrap();
|
||||||
repr
|
repr
|
||||||
};
|
};
|
||||||
self.length = handshake_repr.get_length();
|
self.length = handshake_repr.get_length();
|
||||||
|
Loading…
Reference in New Issue
Block a user