handshake: throw error when no authentication methods left
handshake: only send one nul byte
handshake: log error on unsupported auth method