void Connection::send_credentials(const std::string& class_name) { ScopedPtr<V1Authenticator> v1_auth(config_.auth_provider()->new_authenticator_v1(host_, class_name)); if (v1_auth) { V1Authenticator::Credentials credentials; v1_auth->get_credentials(&credentials); internal_write(new StartupHandler(this, new CredentialsRequest(credentials))); } else { send_initial_auth_response(class_name); } }
void Connection::send_credentials() { ScopedPtr<V1Authenticator> v1_auth(config_.auth_provider()->new_authenticator_v1(address_)); if (v1_auth) { V1Authenticator::Credentials credentials; v1_auth->get_credentials(&credentials); write(new StartupHandler(this, new CredentialsRequest(credentials))); } else { send_initial_auth_response(); } }