#include "remoting/protocol/negotiating_client_authenticator.h"
#include <memory>
#include <sstream>
#include <utility>
#include "base/check_op.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/ptr_util.h"
#include "base/notreached.h"
#include "base/strings/string_split.h"
#include "remoting/protocol/auth_util.h"
#include "remoting/protocol/channel_authenticator.h"
#include "remoting/protocol/host_authentication_config.h"
#include "remoting/protocol/pairing_client_authenticator.h"
#include "remoting/protocol/spake2_authenticator.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
namespace remoting::protocol {
NegotiatingClientAuthenticator::NegotiatingClientAuthenticator(
const std::string& local_id,
const std::string& remote_id,
const ClientAuthenticationConfig& config)
: … { … }
NegotiatingClientAuthenticator::~NegotiatingClientAuthenticator() = default;
void NegotiatingClientAuthenticator::ProcessMessage(
const jingle_xmpp::XmlElement* message,
base::OnceClosure resume_callback) { … }
std::unique_ptr<jingle_xmpp::XmlElement>
NegotiatingClientAuthenticator::GetNextMessage() { … }
void NegotiatingClientAuthenticator::CreateAuthenticatorForCurrentMethod(
Authenticator::State preferred_initial_state,
base::OnceClosure resume_callback) { … }
void NegotiatingClientAuthenticator::CreateSharedSecretAuthenticator(
Authenticator::State initial_state,
base::OnceClosure resume_callback,
const std::string& shared_secret) { … }
bool NegotiatingClientAuthenticator::is_paired() { … }
}