OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ | 5 #ifndef CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ |
6 #define CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ | 6 #define CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // Asks cryptohomed to asynchronously sign an enterprise challenge with the | 126 // Asks cryptohomed to asynchronously sign an enterprise challenge with the |
127 // key specified by |key_type| and |key_name|. The |domain| and |device_id| | 127 // key specified by |key_type| and |key_name|. The |domain| and |device_id| |
128 // parameters will be included in the challenge response. |challenge| must be | 128 // parameters will be included in the challenge response. |challenge| must be |
129 // a valid enterprise challenge. On success, the data sent to |callback| is | 129 // a valid enterprise challenge. On success, the data sent to |callback| is |
130 // the challenge response. | 130 // the challenge response. |
131 virtual void TpmAttestationSignEnterpriseChallenge( | 131 virtual void TpmAttestationSignEnterpriseChallenge( |
132 chromeos::CryptohomeClient::AttestationKeyType key_type, | 132 chromeos::CryptohomeClient::AttestationKeyType key_type, |
133 const std::string& key_name, | 133 const std::string& key_name, |
134 const std::string& domain, | 134 const std::string& domain, |
135 const std::string& device_id, | 135 const std::string& device_id, |
| 136 chromeos::CryptohomeClient::AttestationChallengeOptions options, |
136 const std::string& challenge, | 137 const std::string& challenge, |
137 const DataCallback& callback) = 0; | 138 const DataCallback& callback) = 0; |
138 | 139 |
139 // Asks cryptohomed to asynchronously sign a simple challenge with the key | 140 // Asks cryptohomed to asynchronously sign a simple challenge with the key |
140 // specified by |key_type| and |key_name|. |challenge| can be any arbitrary | 141 // specified by |key_type| and |key_name|. |challenge| can be any arbitrary |
141 // set of bytes. On success, the data sent to |callback| is the challenge | 142 // set of bytes. On success, the data sent to |callback| is the challenge |
142 // response. | 143 // response. |
143 virtual void TpmAttestationSignSimpleChallenge( | 144 virtual void TpmAttestationSignSimpleChallenge( |
144 chromeos::CryptohomeClient::AttestationKeyType key_type, | 145 chromeos::CryptohomeClient::AttestationKeyType key_type, |
145 const std::string& key_name, | 146 const std::string& key_name, |
(...skipping 20 matching lines...) Expand all Loading... |
166 static void Shutdown(); | 167 static void Shutdown(); |
167 | 168 |
168 // Returns a pointer to the global AsyncMethodCaller instance. | 169 // Returns a pointer to the global AsyncMethodCaller instance. |
169 // Initialize() should already have been called. | 170 // Initialize() should already have been called. |
170 static AsyncMethodCaller* GetInstance(); | 171 static AsyncMethodCaller* GetInstance(); |
171 }; | 172 }; |
172 | 173 |
173 } // namespace cryptohome | 174 } // namespace cryptohome |
174 | 175 |
175 #endif // CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ | 176 #endif // CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ |
OLD | NEW |