server_hello: fix inappropriate check on legacy_version
This commit is contained in:
parent
3d566b22e7
commit
59dc5873c5
@ -237,12 +237,6 @@ impl<R: 'static + RngCore + CryptoRng> TlsSocket<R> {
|
|||||||
match tls_state {
|
match tls_state {
|
||||||
// During WAIT_SH for a TLS client, client should wait for ServerHello
|
// During WAIT_SH for a TLS client, client should wait for ServerHello
|
||||||
TlsState::WAIT_SH => {
|
TlsState::WAIT_SH => {
|
||||||
// Legacy_protocol must be TLS 1.2
|
|
||||||
if repr.version != TlsVersion::Tls12 {
|
|
||||||
// Abort communication
|
|
||||||
todo!()
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Validate SH
|
// TODO: Validate SH
|
||||||
if repr.is_server_hello() {
|
if repr.is_server_hello() {
|
||||||
// Check SH content:
|
// Check SH content:
|
||||||
|
Loading…
Reference in New Issue
Block a user