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

Unified Diff: remoting/protocol/it2me_host_authenticator_factory.h

Issue 12316083: Move HostKeyPair into protocol::KeyPair. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 9 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
« no previous file with comments | « remoting/protocol/authenticator_test_base.cc ('k') | remoting/protocol/it2me_host_authenticator_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/it2me_host_authenticator_factory.h
diff --git a/remoting/protocol/it2me_host_authenticator_factory.h b/remoting/protocol/it2me_host_authenticator_factory.h
index c526cbfd95958c65beec9980a108857070f646f7..6683e339d58d8c531f31c0a0978fbcc69d22b714 100644
--- a/remoting/protocol/it2me_host_authenticator_factory.h
+++ b/remoting/protocol/it2me_host_authenticator_factory.h
@@ -9,14 +9,14 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "remoting/protocol/authenticator.h"
-namespace crypto {
-class RSAPrivateKey;
-} // namespace crypto
-
namespace remoting {
+
+class RsaKeyPair;
+
namespace protocol {
// It2MeHostAuthenticatorFactory implements AuthenticatorFactory and
@@ -25,7 +25,7 @@ class It2MeHostAuthenticatorFactory : public AuthenticatorFactory {
public:
It2MeHostAuthenticatorFactory(
const std::string& local_cert,
- const crypto::RSAPrivateKey& local_private_key,
+ scoped_refptr<RsaKeyPair> key_pair,
const std::string& shared_secret);
virtual ~It2MeHostAuthenticatorFactory();
@@ -37,7 +37,7 @@ class It2MeHostAuthenticatorFactory : public AuthenticatorFactory {
private:
std::string local_cert_;
- scoped_ptr<crypto::RSAPrivateKey> local_private_key_;
+ scoped_refptr<RsaKeyPair> key_pair_;
std::string shared_secret_;
DISALLOW_COPY_AND_ASSIGN(It2MeHostAuthenticatorFactory);
« no previous file with comments | « remoting/protocol/authenticator_test_base.cc ('k') | remoting/protocol/it2me_host_authenticator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698