| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_PROTOCOL_SPAKE2_AUTHENTICATOR_H_ | 5 #ifndef REMOTING_PROTOCOL_SPAKE2_AUTHENTICATOR_H_ |
| 6 #define REMOTING_PROTOCOL_SPAKE2_AUTHENTICATOR_H_ | 6 #define REMOTING_PROTOCOL_SPAKE2_AUTHENTICATOR_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 public: | 28 public: |
| 29 static scoped_ptr<Authenticator> CreateForClient( | 29 static scoped_ptr<Authenticator> CreateForClient( |
| 30 const std::string& local_id, | 30 const std::string& local_id, |
| 31 const std::string& remote_id, | 31 const std::string& remote_id, |
| 32 const std::string& shared_secret, | 32 const std::string& shared_secret, |
| 33 State initial_state); | 33 State initial_state); |
| 34 | 34 |
| 35 static scoped_ptr<Authenticator> CreateForHost( | 35 static scoped_ptr<Authenticator> CreateForHost( |
| 36 const std::string& local_id, | 36 const std::string& local_id, |
| 37 const std::string& remote_id, | 37 const std::string& remote_id, |
| 38 const std::string& shared_secret, | |
| 39 const std::string& local_cert, | 38 const std::string& local_cert, |
| 40 scoped_refptr<RsaKeyPair> key_pair, | 39 scoped_refptr<RsaKeyPair> key_pair, |
| 40 const std::string& shared_secret, |
| 41 State initial_state); | 41 State initial_state); |
| 42 | 42 |
| 43 ~Spake2Authenticator() override; | 43 ~Spake2Authenticator() override; |
| 44 | 44 |
| 45 // Authenticator interface. | 45 // Authenticator interface. |
| 46 State state() const override; | 46 State state() const override; |
| 47 bool started() const override; | 47 bool started() const override; |
| 48 RejectionReason rejection_reason() const override; | 48 RejectionReason rejection_reason() const override; |
| 49 void ProcessMessage(const buzz::XmlElement* message, | 49 void ProcessMessage(const buzz::XmlElement* message, |
| 50 const base::Closure& resume_callback) override; | 50 const base::Closure& resume_callback) override; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 std::string auth_key_; | 90 std::string auth_key_; |
| 91 std::string expected_verification_hash_; | 91 std::string expected_verification_hash_; |
| 92 | 92 |
| 93 DISALLOW_COPY_AND_ASSIGN(Spake2Authenticator); | 93 DISALLOW_COPY_AND_ASSIGN(Spake2Authenticator); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace protocol | 96 } // namespace protocol |
| 97 } // namespace remoting | 97 } // namespace remoting |
| 98 | 98 |
| 99 #endif // REMOTING_PROTOCOL_SPAKE2_AUTHENTICATOR_H_ | 99 #endif // REMOTING_PROTOCOL_SPAKE2_AUTHENTICATOR_H_ |
| OLD | NEW |