mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-11-30 09:45:12 +00:00
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:
1 parent
e3452acf59
commit
5194159858
4 files changed
+5
-122
No files matched your search
@@ -100,18 +100,6 @@ impl Stream {
|
||||
}
|
||||
}
|
||||
|
||||
/// Refuse the stream if an encrypted message from the server says it advertised a key
|
||||
/// exchange version other than `seen`, the one this side read from the key exchange.
|
||||
#[inline]
|
||||
pub fn check_kx_advertised(&mut self, seen: u32) {
|
||||
match self {
|
||||
#[cfg(feature = "webrtc")]
|
||||
Stream::WebRTC(_) => {}
|
||||
Stream::WebSocket(s) => s.check_kx_advertised(seen),
|
||||
Stream::Tcp(s) => s.check_kx_advertised(seen),
|
||||
}
|
||||
}
|
||||
|
||||
/// An opaque token that changes whenever bytes have arrived from the peer, a fragment of a
|
||||
/// message that is still incomplete included. Compare successive samples; the value itself
|
||||
/// means nothing. `None` where the transport reports no such thing.
|
||||
|
||||
Reference in new issue
Block a user