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

Side by Side Diff: remoting/protocol/v1_authenticator.cc

Issue 10453080: Revert 139424 - Remove V1 authenticators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/v1_authenticator.h ('k') | remoting/protocol/v1_authenticator_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/protocol/v1_authenticator.h" 5 #include "remoting/protocol/v1_authenticator.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "crypto/rsa_private_key.h" 9 #include "crypto/rsa_private_key.h"
10 #include "remoting/base/constants.h" 10 #include "remoting/base/constants.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 DCHECK_EQ(state_, ACCEPTED); 159 DCHECK_EQ(state_, ACCEPTED);
160 scoped_ptr<SslHmacChannelAuthenticator> result = 160 scoped_ptr<SslHmacChannelAuthenticator> result =
161 SslHmacChannelAuthenticator::CreateForHost( 161 SslHmacChannelAuthenticator::CreateForHost(
162 local_cert_, local_private_key_.get(), shared_secret_); 162 local_cert_, local_private_key_.get(), shared_secret_);
163 result->SetLegacyOneWayMode(SslHmacChannelAuthenticator::RECEIVE_ONLY); 163 result->SetLegacyOneWayMode(SslHmacChannelAuthenticator::RECEIVE_ONLY);
164 return result.PassAs<ChannelAuthenticator>(); 164 return result.PassAs<ChannelAuthenticator>();
165 }; 165 };
166 166
167 } // namespace remoting 167 } // namespace remoting
168 } // namespace protocol 168 } // namespace protocol
OLDNEW
« no previous file with comments | « remoting/protocol/v1_authenticator.h ('k') | remoting/protocol/v1_authenticator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698