void NegotiateVersion(out AuthenticationMethod[] methods) { _c.SendVersion(new Version(3, 8)); _clientVersion = _c.ReceiveVersion(); if (_clientVersion == new Version(3, 8)) { methods = new[] { _options.AuthenticationMethod == AuthenticationMethod.Password ? AuthenticationMethod.Password : AuthenticationMethod.None }; } else { methods = new AuthenticationMethod[0]; } }