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

Unified Diff: remoting/protocol/it2me_host_authenticator_factory.cc

Issue 9150014: Cleanup AuthenticatorFactory implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 8 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/protocol/it2me_host_authenticator_factory.cc
diff --git a/remoting/protocol/it2me_host_authenticator_factory.cc b/remoting/protocol/it2me_host_authenticator_factory.cc
index 65145c20cd2b9c8487146f6b5b07b0fa4f82836e..21809de0402bf186273feac10f285c90ab49da8d 100644
--- a/remoting/protocol/it2me_host_authenticator_factory.cc
+++ b/remoting/protocol/it2me_host_authenticator_factory.cc
@@ -14,10 +14,10 @@ namespace protocol {
It2MeHostAuthenticatorFactory::It2MeHostAuthenticatorFactory(
const std::string& local_cert,
- const crypto::RSAPrivateKey* local_private_key,
+ const crypto::RSAPrivateKey& local_private_key,
const std::string& shared_secret)
: local_cert_(local_cert),
- local_private_key_(local_private_key->Copy()),
+ local_private_key_(local_private_key.Copy()),
shared_secret_(shared_secret) {
}
@@ -32,10 +32,10 @@ Authenticator* It2MeHostAuthenticatorFactory::CreateAuthenticator(
//
// if (V2Authenticator::IsEkeMessage(first_message)) {
// return V2Authenticator::CreateForHost(
- // local_cert_, local_private_key_.get(), shared_secret_);
+ // local_cert_, *local_private_key_, shared_secret_);
// }
- return new V1HostAuthenticator(local_cert_, local_private_key_.get(),
+ return new V1HostAuthenticator(local_cert_, *local_private_key_,
shared_secret_, remote_jid);
}
« no previous file with comments | « remoting/protocol/it2me_host_authenticator_factory.h ('k') | remoting/protocol/me2me_host_authenticator_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698