summaryrefslogtreecommitdiffstats
path: root/remoting/host
diff options
context:
space:
mode:
authorsergeyu <sergeyu@chromium.org>2016-03-17 11:08:03 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-17 18:09:25 +0000
commitd5d7539fdbcb87afac1d6b25347fb1246b500ad0 (patch)
treed16b3cd76008696bae315bc96af84e3f86283697 /remoting/host
parent281c2845e0dbcbee2aad4227c40556192ff2872a (diff)
downloadchromium_src-d5d7539fdbcb87afac1d6b25347fb1246b500ad0.zip
chromium_src-d5d7539fdbcb87afac1d6b25347fb1246b500ad0.tar.gz
chromium_src-d5d7539fdbcb87afac1d6b25347fb1246b500ad0.tar.bz2
Remove spake2_plain authentication method.
It2me host can use spake2_hmac authentication method and it works properly with the current client, so there is no reason to keep spake2_plain for It2Me. Review URL: https://codereview.chromium.org/1799293002 Cr-Commit-Position: refs/heads/master@{#381744}
Diffstat (limited to 'remoting/host')
-rw-r--r--remoting/host/it2me/it2me_host.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/remoting/host/it2me/it2me_host.cc b/remoting/host/it2me/it2me_host.cc
index 059f210..08eb7e1 100644
--- a/remoting/host/it2me/it2me_host.cc
+++ b/remoting/host/it2me/it2me_host.cc
@@ -29,6 +29,7 @@
#include "remoting/host/it2me_desktop_environment.h"
#include "remoting/host/policy_watcher.h"
#include "remoting/host/register_support_host_request.h"
+#include "remoting/protocol/auth_util.h"
#include "remoting/protocol/chromium_port_allocator_factory.h"
#include "remoting/protocol/ice_transport.h"
#include "remoting/protocol/it2me_host_authenticator_factory.h"
@@ -467,6 +468,8 @@ void It2MeHost::OnReceivedSupportID(
std::string host_secret = GenerateSupportHostSecret();
std::string access_code = support_id + host_secret;
+ std::string access_code_hash =
+ protocol::GetSharedSecretHash(support_id, access_code);
std::string local_certificate = host_key_pair_->GenerateCertificate();
if (local_certificate.empty()) {
@@ -479,7 +482,7 @@ void It2MeHost::OnReceivedSupportID(
scoped_ptr<protocol::AuthenticatorFactory> factory(
new protocol::It2MeHostAuthenticatorFactory(
- local_certificate, host_key_pair_, access_code,
+ local_certificate, host_key_pair_, access_code_hash,
required_client_domain_));
host_->SetAuthenticatorFactory(std::move(factory));