Index: remoting/protocol/me2me_host_authenticator_factory.cc |
diff --git a/remoting/protocol/me2me_host_authenticator_factory.cc b/remoting/protocol/me2me_host_authenticator_factory.cc |
index ad813f776dc6b741112a91505842f3d7b4198e92..ebdde5bfe2627f213c2c8c2200653dd086c1b5b3 100644 |
--- a/remoting/protocol/me2me_host_authenticator_factory.cc |
+++ b/remoting/protocol/me2me_host_authenticator_factory.cc |
@@ -6,7 +6,7 @@ |
#include "base/base64.h" |
#include "base/string_util.h" |
-#include "crypto/rsa_private_key.h" |
+#include "remoting/base/rsa_key_pair.h" |
#include "remoting/protocol/channel_authenticator.h" |
#include "remoting/protocol/negotiating_authenticator.h" |
#include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
@@ -58,10 +58,10 @@ class RejectingAuthenticator : public Authenticator { |
Me2MeHostAuthenticatorFactory::Me2MeHostAuthenticatorFactory( |
const std::string& local_cert, |
- const crypto::RSAPrivateKey& local_private_key, |
+ scoped_refptr<RsaKeyPair> key_pair, |
const SharedSecretHash& shared_secret_hash) |
: local_cert_(local_cert), |
- local_private_key_(local_private_key.Copy()), |
+ key_pair_(key_pair), |
shared_secret_hash_(shared_secret_hash) { |
} |
@@ -90,7 +90,7 @@ scoped_ptr<Authenticator> Me2MeHostAuthenticatorFactory::CreateAuthenticator( |
} |
return NegotiatingAuthenticator::CreateForHost( |
- local_cert_, *local_private_key_, shared_secret_hash_.value, |
+ local_cert_, key_pair_, shared_secret_hash_.value, |
shared_secret_hash_.hash_function); |
} |