Skip to main content

prelogin

Function prelogin 

Source
pub fn prelogin(encryption: u8) -> Vec<u8> 
Expand description

Build a PRELOGIN payload asking for a particular encryption level.

Every option is a five-byte entry — token, offset, length — and the offsets are counted from the start of this payload, which is why the option data cannot be written until the whole option header is sized.