From 59dc5873c58e5a3f59337a9444d44f87b870b903 Mon Sep 17 00:00:00 2001 From: occheung Date: Mon, 2 Nov 2020 17:34:04 +0800 Subject: [PATCH] server_hello: fix inappropriate check on legacy_version --- src/tls.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/tls.rs b/src/tls.rs index 89f02e7..02aa6e6 100644 --- a/src/tls.rs +++ b/src/tls.rs @@ -237,12 +237,6 @@ impl TlsSocket { 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: