Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: remoting/host/chromoting_host.cc

Issue 138753005: Add gnubby authentication to remoting host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/host/chromoting_host.cc
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index e4bdae75990a3a93c2c1ac8229ee2ceb544ee95b..bf47ab6373ef2c437a151b0e5bd04f5c1a6371c9 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -82,6 +82,7 @@ ChromotingHost::ChromotingHost(
authenticating_client_(false),
reject_authenticating_client_(false),
enable_curtaining_(false),
+ enable_gnubby_auth_(false),
weak_factory_(this) {
DCHECK(network_task_runner_->BelongsToCurrentThread());
DCHECK(signal_strategy);
@@ -169,6 +170,10 @@ void ChromotingHost::SetMaximumSessionDuration(
max_session_duration_ = max_session_duration;
}
+void ChromotingHost::SetEnableGnubbyAuth(bool enable) {
+ enable_gnubby_auth_ = enable;
+}
+
////////////////////////////////////////////////////////////////////////////
// protocol::ClientSession::EventHandler implementation.
bool ChromotingHost::OnSessionAuthenticated(ClientSession* client) {
@@ -303,7 +308,8 @@ void ChromotingHost::OnIncomingSession(
connection.Pass(),
desktop_environment_factory_,
max_session_duration_,
- pairing_registry_);
+ pairing_registry_,
+ enable_gnubby_auth_);
clients_.push_back(client);
}

Powered by Google App Engine
This is Rietveld 408576698