1 2 3 4 5 6 7 8 9 10 11 12 13
//! SSH protocol identification logic. use crate::core::types::Transport; use crate::define_protocol; define_protocol!( /// SSH protocol identification implementation. name: Ssh, transport: Transport::Tcp, identify: |data| { data.starts_with(b"SSH-2.0-") || data.starts_with(b"SSH-1.99-") } );