server_hello: fix inappropriate check on legacy_version

master
occheung 2020-11-02 17:34:04 +08:00
parent 3d566b22e7
commit 59dc5873c5
1 changed files with 0 additions and 6 deletions

View File

@ -237,12 +237,6 @@ impl<R: 'static + RngCore + CryptoRng> TlsSocket<R> {
match tls_state {
// During WAIT_SH for a TLS client, client should wait for ServerHello
TlsState::WAIT_SH => {
// Legacy_protocol must be TLS 1.2
if repr.version != TlsVersion::Tls12 {
// Abort communication
todo!()
}
// TODO: Validate SH
if repr.is_server_hello() {
// Check SH content: