From 278a4e8244ff8105dd2fdd4f8c593b4bd6a34cee Mon Sep 17 00:00:00 2001 From: "wez@chromium.org" Date: Wed, 27 Jul 2011 04:17:57 +0000 Subject: Add an authentication step to stream channel setup in JingleStreamConnector. Fix JingleStreamConnector and JingleDatagramConnector tear-down semantics in case of failure. BUG=88130,90624 TEST= Review URL: http://codereview.chromium.org/7501007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94247 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/protocol/connection_to_host.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'remoting/protocol/connection_to_host.cc') diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc index b82143b..3841fc7 100644 --- a/remoting/protocol/connection_to_host.cc +++ b/remoting/protocol/connection_to_host.cc @@ -127,6 +127,9 @@ void ConnectionToHost::InitSession() { session_.reset(session_manager_->Connect( host_jid_, host_public_key_, client_token, candidate_config, NewCallback(this, &ConnectionToHost::OnSessionStateChange))); + + // Set the shared-secret for securing SSL channels. + session_->set_shared_secret(access_code_); } const SessionConfig* ConnectionToHost::config() { -- cgit v1.1