Index: remoting/protocol/v2_authenticator.h |
diff --git a/remoting/protocol/v2_authenticator.h b/remoting/protocol/v2_authenticator.h |
index 3dc1cde320c01baaca5fb38944b4f7894fc60552..982823324a4f85ffa396a2aa8792b77281d576ed 100644 |
--- a/remoting/protocol/v2_authenticator.h |
+++ b/remoting/protocol/v2_authenticator.h |
@@ -30,7 +30,7 @@ class V2Authenticator : public Authenticator { |
static V2Authenticator* CreateForHost( |
const std::string& local_cert, |
- crypto::RSAPrivateKey* local_private_key, |
+ const crypto::RSAPrivateKey& local_private_key, |
const std::string& shared_secret); |
virtual ~V2Authenticator(); |
@@ -66,27 +66,6 @@ class V2Authenticator : public Authenticator { |
DISALLOW_COPY_AND_ASSIGN(V2Authenticator); |
}; |
-class V2HostAuthenticatorFactory : public AuthenticatorFactory { |
- public: |
- // Doesn't take ownership of |local_private_key|. |
- V2HostAuthenticatorFactory(const std::string& local_cert, |
- const crypto::RSAPrivateKey* local_private_key, |
- const std::string& shared_secret); |
- virtual ~V2HostAuthenticatorFactory(); |
- |
- // AuthenticatorFactory interface. |
- virtual Authenticator* CreateAuthenticator( |
- const std::string& remote_jid, |
- const buzz::XmlElement* first_message) OVERRIDE; |
- |
- private: |
- std::string local_cert_; |
- scoped_ptr<crypto::RSAPrivateKey> local_private_key_; |
- std::string shared_secret_; |
- |
- DISALLOW_COPY_AND_ASSIGN(V2HostAuthenticatorFactory); |
-}; |
- |
} // namespace protocol |
} // namespace remoting |