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

Unified Diff: remoting/protocol/negotiating_host_authenticator.h

Issue 1780403002: Enable Curve25519 in host and client for PIN-based and third-party auth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/negotiating_host_authenticator.h
diff --git a/remoting/protocol/negotiating_host_authenticator.h b/remoting/protocol/negotiating_host_authenticator.h
index c2e2c541d5639e4ce4fad0585781e9b47c5f5135..22508861d716a9c7b49d9b4ba1ef95b47e34e6af 100644
--- a/remoting/protocol/negotiating_host_authenticator.h
+++ b/remoting/protocol/negotiating_host_authenticator.h
@@ -30,6 +30,8 @@ class NegotiatingHostAuthenticator : public NegotiatingAuthenticatorBase {
// Creates a host authenticator for It2Me host.
static scoped_ptr<Authenticator> CreateForIt2Me(
+ const std::string& local_id,
+ const std::string& remote_id,
const std::string& local_cert,
scoped_refptr<RsaKeyPair> key_pair,
const std::string& access_code);
@@ -38,6 +40,8 @@ class NegotiatingHostAuthenticator : public NegotiatingAuthenticatorBase {
// non-nullptr then the paired methods will be offered, supporting
// PIN-less authentication.
static scoped_ptr<Authenticator> CreateWithPin(
+ const std::string& local_id,
+ const std::string& remote_id,
const std::string& local_cert,
scoped_refptr<RsaKeyPair> key_pair,
const std::string& pin_hash,
@@ -45,6 +49,8 @@ class NegotiatingHostAuthenticator : public NegotiatingAuthenticatorBase {
// Creates a host authenticator, using third party authentication.
static scoped_ptr<Authenticator> CreateWithThirdPartyAuth(
+ const std::string& local_id,
+ const std::string& remote_id,
const std::string& local_cert,
scoped_refptr<RsaKeyPair> key_pair,
scoped_ptr<TokenValidator> token_validator);
@@ -55,7 +61,9 @@ class NegotiatingHostAuthenticator : public NegotiatingAuthenticatorBase {
scoped_ptr<buzz::XmlElement> GetNextMessage() override;
private:
- NegotiatingHostAuthenticator(const std::string& local_cert,
+ NegotiatingHostAuthenticator(const std::string& local_id,
+ const std::string& remote_id,
+ const std::string& local_cert,
scoped_refptr<RsaKeyPair> key_pair);
// (Asynchronously) creates an authenticator, and stores it in
@@ -65,6 +73,9 @@ class NegotiatingHostAuthenticator : public NegotiatingAuthenticatorBase {
void CreateAuthenticator(Authenticator::State preferred_initial_state,
const base::Closure& resume_callback);
+ std::string local_id_;
+ std::string remote_id_;
+
std::string local_cert_;
scoped_refptr<RsaKeyPair> local_key_pair_;
« no previous file with comments | « remoting/protocol/negotiating_client_authenticator.cc ('k') | remoting/protocol/negotiating_host_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698