| 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 c871b6c5cfafeabcb2f54f2b216bf2392f16765b..9a04d89742cbf5131e04b80ea1447619af5b5697 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"
|
| @@ -60,10 +60,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) {
|
| }
|
|
|
| @@ -92,7 +92,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);
|
| }
|
|
|
|
|