Chromium Code Reviews| 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_DBUS_CRYPTOHOME_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 6 #define CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 235 | 235 |
| 236 // Asynchronously finishes an attestation enrollment operation. The callback | 236 // Asynchronously finishes an attestation enrollment operation. The callback |
| 237 // will be called when the dbus call completes. When the operation completes, | 237 // will be called when the dbus call completes. When the operation completes, |
| 238 // the AsyncCallStatusHandler signal handler is called. |pca_response| is the | 238 // the AsyncCallStatusHandler signal handler is called. |pca_response| is the |
| 239 // response to the enrollment request emitted by the Privacy CA. | 239 // response to the enrollment request emitted by the Privacy CA. |
| 240 virtual void AsyncTpmAttestationEnroll( | 240 virtual void AsyncTpmAttestationEnroll( |
| 241 const std::string& pca_response, | 241 const std::string& pca_response, |
| 242 const AsyncMethodCallback& callback) = 0; | 242 const AsyncMethodCallback& callback) = 0; |
| 243 | 243 |
| 244 // Asynchronously creates an attestation certificate request according to | 244 // Asynchronously creates an attestation certificate request according to |
| 245 // |options|, which is a combination of AttestationCertificateOptions. | 245 // |certificate_profile|. Some profiles require that the |user_email| of the |
| 246 // |callback| will be called when the dbus call completes. When the operation | 246 // currently active user and an identifier of the |request_origin| be |
| 247 // completes, the AsyncCallStatusWithDataHandler signal handler is called. | 247 // provided. |callback| will be called when the dbus call completes. When |
| 248 // The data that is sent with the signal is a certificate request to be sent | 248 // the operation completes, the AsyncCallStatusWithDataHandler signal handler |
| 249 // to the Privacy CA. The certificate request is completed by calling | 249 // is called. The data that is sent with the signal is a certificate request |
| 250 // AsyncTpmAttestationFinishCertRequest. | 250 // to be sent to the Privacy CA. The certificate request is completed by |
| 251 // calling AsyncTpmAttestationFinishCertRequest. The |user_email| will not | |
| 252 // be included in the certificate request for the Privacy CA. | |
| 251 virtual void AsyncTpmAttestationCreateCertRequest( | 253 virtual void AsyncTpmAttestationCreateCertRequest( |
| 252 int options, | 254 int certificate_profile, |
|
Mattias Nissler (ping if slow)
2013/07/29 09:19:25
The type is a bit unfortunate, and the comment doe
dkrahn
2013/08/08 01:29:29
Finally getting back to this... and I don't know w
| |
| 255 const std::string& user_email, | |
| 256 const std::string& request_origin, | |
| 253 const AsyncMethodCallback& callback) = 0; | 257 const AsyncMethodCallback& callback) = 0; |
| 254 | 258 |
| 255 // Asynchronously finishes a certificate request operation. The callback will | 259 // Asynchronously finishes a certificate request operation. The callback will |
| 256 // be called when the dbus call completes. When the operation completes, the | 260 // be called when the dbus call completes. When the operation completes, the |
| 257 // AsyncCallStatusWithDataHandler signal handler is called. The data that is | 261 // AsyncCallStatusWithDataHandler signal handler is called. The data that is |
| 258 // sent with the signal is a certificate chain in PEM format. |pca_response| | 262 // sent with the signal is a certificate chain in PEM format. |pca_response| |
| 259 // is the response to the certificate request emitted by the Privacy CA. | 263 // is the response to the certificate request emitted by the Privacy CA. |
| 260 // |key_type| determines whether the certified key is to be associated with | 264 // |key_type| determines whether the certified key is to be associated with |
| 261 // the current user. |key_name| is a name for the key. | 265 // the current user. |key_name| is a name for the key. |
| 262 virtual void AsyncTpmAttestationFinishCertRequest( | 266 virtual void AsyncTpmAttestationFinishCertRequest( |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 349 // Create() should be used instead. | 353 // Create() should be used instead. |
| 350 CryptohomeClient(); | 354 CryptohomeClient(); |
| 351 | 355 |
| 352 private: | 356 private: |
| 353 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); | 357 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); |
| 354 }; | 358 }; |
| 355 | 359 |
| 356 } // namespace chromeos | 360 } // namespace chromeos |
| 357 | 361 |
| 358 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 362 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
| OLD | NEW |