kx: drop the advertisement echo

signed_version settles the server's version inside the key exchange, so
an echo of it on the messages after has nothing left to confirm. With it
go RendezvousMessage.kx_advertised, the check the transport ran on each
decrypted frame, and the tests of both.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019aokqJuhjvB3kijXtAg5Ns
This commit is contained in:
rustdeskandClaude Fable 5.1 committed 2026-09-22 17:22:01 +08:00
1 parent e3452acf59
commit 5194159858
4 files changed
+5 -122

No files matched your search

-7
View File
@@ -268,13 +268,6 @@ impl WsFramedStream {
Ok(())
}
#[inline]
pub fn check_kx_advertised(&mut self, seen: u32) {
if let Some(enc) = self.encrypt.as_mut() {
enc.check_kx_advertised(seen);
}
}
#[inline]
pub fn is_secured(&self) -> bool {
self.encrypt.is_some()