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

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, 1 month 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/v1_authenticator.h
diff --git a/remoting/protocol/v1_authenticator.h b/remoting/protocol/v1_authenticator.h
index d53c5bfd90e1bda2f2e8bbb549c707f28394edbd..16eccb585e54e2a1358bb806360dd2461cd5f7fa 100644
--- a/remoting/protocol/v1_authenticator.h
+++ b/remoting/protocol/v1_authenticator.h
@@ -54,7 +54,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_;
@@ -66,8 +66,8 @@ 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 std::string& shared_secret);
+ const crypto::RSAPrivateKey* local_private_key,
+ const std::string& shared_secret);
virtual ~V1HostAuthenticatorFactory();
// AuthenticatorFactory interface.

Powered by Google App Engine
This is Rietveld 408576698