Skip to main content

negotiate

Function negotiate 

Source
pub(crate) fn negotiate(
    conn: &mut Smb2Conn,
    server: &Arc<ServerShared>,
    hdr: &Header2,
    buf: &[u8],
) -> NegotiateReply
Expand description

Negotiate a dialect ([MS-SMB2] §3.3.5.3-4): answer probes with the wildcard response, pick a common dialect, validate 3.1.1 pre-auth contexts, and choose cipher/compression. The response is framed and pre-auth-hashed by the shared tail in process_single.