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

Unified Diff: remoting/protocol/ssl_hmac_channel_authenticator.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
Index: remoting/protocol/ssl_hmac_channel_authenticator.h
diff --git a/remoting/protocol/ssl_hmac_channel_authenticator.h b/remoting/protocol/ssl_hmac_channel_authenticator.h
index 3ba6492b0f2ba7b2e76131442448033a64e68a20..6f7440ccb4259f788690c3ec1bac3f5ba36ceeb8 100644
--- a/remoting/protocol/ssl_hmac_channel_authenticator.h
+++ b/remoting/protocol/ssl_hmac_channel_authenticator.h
@@ -13,10 +13,6 @@
#include "base/threading/non_thread_safe.h"
#include "remoting/protocol/channel_authenticator.h"
-namespace crypto {
-class RSAPrivateKey;
-} // namespace crypto
-
namespace net {
class CertVerifier;
class DrainableIOBuffer;
@@ -25,6 +21,9 @@ class SSLSocket;
} // namespace net
namespace remoting {
+
+class RsaKeyPair;
+
namespace protocol {
// SslHmacChannelAuthenticator implements ChannelAuthenticator that
@@ -51,7 +50,7 @@ class SslHmacChannelAuthenticator : public ChannelAuthenticator,
static scoped_ptr<SslHmacChannelAuthenticator> CreateForHost(
const std::string& local_cert,
- crypto::RSAPrivateKey* local_private_key,
+ scoped_refptr<RsaKeyPair> key_pair,
const std::string& auth_key);
virtual ~SslHmacChannelAuthenticator();
@@ -85,7 +84,7 @@ class SslHmacChannelAuthenticator : public ChannelAuthenticator,
// Used in the SERVER mode only.
std::string local_cert_;
- crypto::RSAPrivateKey* local_private_key_;
+ scoped_refptr<RsaKeyPair> local_key_pair_;
// Used in the CLIENT mode only.
std::string remote_cert_;
« no previous file with comments | « remoting/protocol/negotiating_authenticator_unittest.cc ('k') | remoting/protocol/ssl_hmac_channel_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698