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

Unified Diff: remoting/protocol/v1_authenticator.h

Issue 8727014: Implement RSAPrivateKey::Copy() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years 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 | « crypto/rsa_private_key_win.cc ('k') | remoting/protocol/v1_authenticator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/v1_authenticator.h
diff --git a/remoting/protocol/v1_authenticator.h b/remoting/protocol/v1_authenticator.h
index b6fffd7f3701c36ee03826f9b08cae067d55dfd2..6cedd0b89aa02e74d2e8a95bb81525bbfe6b8c8d 100644
--- a/remoting/protocol/v1_authenticator.h
+++ b/remoting/protocol/v1_authenticator.h
@@ -42,7 +42,7 @@ class V1HostAuthenticator : public Authenticator {
public:
// Doesn't take ownership of |local_private_key|.
V1HostAuthenticator(const std::string& local_cert,
- crypto::RSAPrivateKey* local_private_key,
+ const crypto::RSAPrivateKey* local_private_key,
const std::string& shared_secret,
const std::string& remote_jid);
virtual ~V1HostAuthenticator();
@@ -55,7 +55,7 @@ class V1HostAuthenticator : public Authenticator {
private:
std::string local_cert_;
- crypto::RSAPrivateKey* local_private_key_;
+ scoped_ptr<crypto::RSAPrivateKey> local_private_key_;
std::string shared_secret_;
std::string remote_jid_;
State state_;
@@ -67,7 +67,7 @@ class V1HostAuthenticatorFactory : public AuthenticatorFactory {
public:
// Doesn't take ownership of |local_private_key|.
V1HostAuthenticatorFactory(const std::string& local_cert,
- crypto::RSAPrivateKey* local_private_key,
+ const crypto::RSAPrivateKey* local_private_key,
const std::string& shared_secret);
virtual ~V1HostAuthenticatorFactory();
« no previous file with comments | « crypto/rsa_private_key_win.cc ('k') | remoting/protocol/v1_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698