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

Unified Diff: remoting/protocol/v2_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
« no previous file with comments | « remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc ('k') | remoting/protocol/v2_authenticator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/v2_authenticator.h
diff --git a/remoting/protocol/v2_authenticator.h b/remoting/protocol/v2_authenticator.h
index fdc86be3d24c39a6bdb73344840c34694fd6909c..0675cb23f0e53db0237e552af1e972b895865495 100644
--- a/remoting/protocol/v2_authenticator.h
+++ b/remoting/protocol/v2_authenticator.h
@@ -14,11 +14,10 @@
#include "crypto/p224_spake.h"
#include "remoting/protocol/authenticator.h"
-namespace crypto {
-class RSAPrivateKey;
-} // namespace crypto
-
namespace remoting {
+
+class RsaKeyPair;
+
namespace protocol {
class V2Authenticator : public Authenticator {
@@ -31,7 +30,7 @@ class V2Authenticator : public Authenticator {
static scoped_ptr<Authenticator> CreateForHost(
const std::string& local_cert,
- const crypto::RSAPrivateKey& local_private_key,
+ scoped_refptr<RsaKeyPair> key_pair,
const std::string& shared_secret,
State initial_state);
@@ -59,7 +58,7 @@ class V2Authenticator : public Authenticator {
// Used only for host authenticators.
std::string local_cert_;
- scoped_ptr<crypto::RSAPrivateKey> local_private_key_;
+ scoped_refptr<RsaKeyPair> local_key_pair_;
bool certificate_sent_;
// Used only for client authenticators.
« no previous file with comments | « remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc ('k') | remoting/protocol/v2_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698