Skip to main content

build_response

Function build_response 

Source
pub fn build_response(action: u16, blob: &[u8]) -> (Vec<u8>, Vec<u8>)
Expand description

Build a WC=4 session setup response: AndX triple, Action word, SecurityBlobLength word, then [blob][NativeOS][NativeLanMan] data.

Trailing strings are always OEM (some clients mis-parse UTF-16 here).