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

Unified Diff: remoting/client/chromoting_client.cc

Issue 1803893002: Normalize JIDs passed to Spake2Authenticator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | remoting/protocol/me2me_host_authenticator_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_client.cc
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc
index 1f7165ab5db91f8a8a5b2f59b467e9bf7f02e8c3..eedd1c975f9810c7ff7aec62c0c08555a6324522 100644
--- a/remoting/client/chromoting_client.cc
+++ b/remoting/client/chromoting_client.cc
@@ -21,6 +21,7 @@
#include "remoting/protocol/transport_context.h"
#include "remoting/protocol/video_renderer.h"
#include "remoting/protocol/webrtc_connection_to_host.h"
+#include "remoting/signaling/jid_util.h"
namespace remoting {
@@ -61,7 +62,7 @@ void ChromotingClient::Start(
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(!session_manager_); // Start must be called more than once.
- host_jid_ = host_jid;
+ host_jid_ = NormalizeJid(host_jid);
local_capabilities_ = capabilities;
if (!protocol_config_)
@@ -216,7 +217,7 @@ void ChromotingClient::StartConnection() {
session_manager_->Connect(
host_jid_,
make_scoped_ptr(new protocol::NegotiatingClientAuthenticator(
- signal_strategy_->GetLocalJid(), host_jid_,
+ NormalizeJid(signal_strategy_->GetLocalJid()), host_jid_,
client_auth_config_))),
transport_context_, this);
}
« no previous file with comments | « no previous file | remoting/protocol/me2me_host_authenticator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698