From c160e379362ad81082ea9a9f0c5af013a0225743 Mon Sep 17 00:00:00 2001 From: dan Date: Tue, 19 Sep 2023 09:25:55 +0300 Subject: [PATCH] fix: remove close_notify guard --- tlsn/tlsn-prover/src/lib.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tlsn/tlsn-prover/src/lib.rs b/tlsn/tlsn-prover/src/lib.rs index bc51ee6842..9a6da20f36 100644 --- a/tlsn/tlsn-prover/src/lib.rs +++ b/tlsn/tlsn-prover/src/lib.rs @@ -173,17 +173,6 @@ impl Prover { _ = mux_fut => return Err(std::io::Error::from(std::io::ErrorKind::UnexpectedEof))?, }; - // Extra guard to guarantee that the server sent a close_notify. - // - // DO NOT REMOVE! - // - // This is necessary, as our protocol reveals the MAC key to the Notary afterwards - // which could be used to authenticate modified TLS records if the Notary is - // in the middle of the connection. - if !client.received_close_notify() { - return Err(ProverError::ServerNoCloseNotify); - } - let backend = client .backend_mut() .as_any_mut()