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

Unified Diff: remoting/protocol/negotiating_client_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_client_authenticator.h
diff --git a/remoting/protocol/negotiating_client_authenticator.h b/remoting/protocol/negotiating_client_authenticator.h
index 0867d1035b7f4b28df6d4d92c378b8475adca4cd..9a1fe1ef94996095e525bbc935bedbe449bc464d 100644
--- a/remoting/protocol/negotiating_client_authenticator.h
+++ b/remoting/protocol/negotiating_client_authenticator.h
@@ -41,6 +41,8 @@ struct ClientAuthenticationConfig {
class NegotiatingClientAuthenticator : public NegotiatingAuthenticatorBase {
public:
explicit NegotiatingClientAuthenticator(
+ const std::string& local_id,
+ const std::string& remote_id,
const ClientAuthenticationConfig& config);
~NegotiatingClientAuthenticator() override;
@@ -69,12 +71,14 @@ class NegotiatingClientAuthenticator : public NegotiatingAuthenticatorBase {
// message.
void CreatePreferredAuthenticator();
- // Creates a V2Authenticator in state |initial_state| with the given
- // |shared_secret|, then runs |resume_callback|.
- void CreateV2AuthenticatorWithSecret(
- Authenticator::State initial_state,
- const base::Closure& resume_callback,
- const std::string& shared_secret);
+ // Creates a shared-secret authenticator in state |initial_state| with the
+ // given |shared_secret|, then runs |resume_callback|.
+ void CreateSharedSecretAuthenticator(Authenticator::State initial_state,
+ const base::Closure& resume_callback,
+ const std::string& shared_secret);
+
+ std::string local_id_;
+ std::string remote_id_;
ClientAuthenticationConfig config_;
« no previous file with comments | « remoting/protocol/negotiating_authenticator_unittest.cc ('k') | remoting/protocol/negotiating_client_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698