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

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: Rename key_pair_ to local_key_pair_ Created 7 years, 10 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/v2_authenticator.h
diff --git a/remoting/protocol/v2_authenticator.h b/remoting/protocol/v2_authenticator.h
index ef6503c26c8b4fc15f9a980eecb184cd55eeb595..6013995d881d6602627f134862bd4606a5344d18 100644
--- a/remoting/protocol/v2_authenticator.h
+++ b/remoting/protocol/v2_authenticator.h
@@ -12,12 +12,9 @@
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "crypto/p224_spake.h"
+#include "remoting/base/rsa_key_pair.h"
Wez 2013/03/06 00:43:25 nit: Can you forward-declare RsaKeyPair?
rmsousa 2013/03/06 04:36:49 Done.
#include "remoting/protocol/authenticator.h"
-namespace crypto {
-class RSAPrivateKey;
-} // namespace crypto
-
namespace remoting {
namespace protocol {
@@ -31,7 +28,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);
@@ -56,7 +53,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.

Powered by Google App Engine
This is Rietveld 408576698