Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
|
Greg Spencer (Chromium)
2011/04/08 20:21:45
Update copyright
kmixter1
2011/04/08 21:04:14
Done.
| |
| 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 #include "interface.h" | 4 #include "interface.h" |
| 5 | 5 |
| 6 namespace cryptohome { | 6 namespace cryptohome { |
| 7 namespace gobject { | 7 namespace gobject { |
| 8 | 8 |
| 9 // Register with the glib type system. | 9 // Register with the glib type system. |
| 10 // This macro automatically defines a number of functions and variables | 10 // This macro automatically defines a number of functions and variables |
| 11 // which are required to make cryptohome functional as a GObject: | 11 // which are required to make cryptohome functional as a GObject: |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 194 CRYPTOHOME_WRAP_METHOD(TpmIsBeingOwned, OUT_owning); | 194 CRYPTOHOME_WRAP_METHOD(TpmIsBeingOwned, OUT_owning); |
| 195 } | 195 } |
| 196 gboolean cryptohome_tpm_can_attempt_ownership(Cryptohome *self, | 196 gboolean cryptohome_tpm_can_attempt_ownership(Cryptohome *self, |
| 197 GError **error) { | 197 GError **error) { |
| 198 CRYPTOHOME_WRAP_METHOD_NO_ARGS(TpmCanAttemptOwnership); | 198 CRYPTOHOME_WRAP_METHOD_NO_ARGS(TpmCanAttemptOwnership); |
| 199 } | 199 } |
| 200 gboolean cryptohome_tpm_clear_stored_password(Cryptohome *self, | 200 gboolean cryptohome_tpm_clear_stored_password(Cryptohome *self, |
| 201 GError **error) { | 201 GError **error) { |
| 202 CRYPTOHOME_WRAP_METHOD_NO_ARGS(TpmClearStoredPassword); | 202 CRYPTOHOME_WRAP_METHOD_NO_ARGS(TpmClearStoredPassword); |
| 203 } | 203 } |
| 204 gboolean cryptohome_pkcs11_get_tpm_token_info(Cryptohome *self, | |
| 205 gchar **OUT_label, | |
| 206 gchar **OUT_so_pin, | |
| 207 gchar **OUT_user_pin, | |
| 208 GError **error) { | |
| 209 CRYPTOHOME_WRAP_METHOD(Pkcs11GetTpmTokenInfo, OUT_label, OUT_so_pin, | |
| 210 OUT_user_pin); | |
| 211 } | |
| 212 gboolean cryptohome_pkcs11_is_ready(Cryptohome *self, | |
| 213 gboolean *OUT_ready, | |
| 214 GError **error) { | |
| 215 CRYPTOHOME_WRAP_METHOD(Pkcs11IsReady, OUT_ready); | |
| 216 } | |
| 204 gboolean cryptohome_get_status_string(Cryptohome *self, | 217 gboolean cryptohome_get_status_string(Cryptohome *self, |
| 205 gchar **OUT_status, | 218 gchar **OUT_status, |
| 206 GError **error) { | 219 GError **error) { |
| 207 CRYPTOHOME_WRAP_METHOD(GetStatusString, OUT_status); | 220 CRYPTOHOME_WRAP_METHOD(GetStatusString, OUT_status); |
| 208 } | 221 } |
| 209 #undef CRYPTOHOME_WRAP_METHOD | 222 #undef CRYPTOHOME_WRAP_METHOD |
| 210 | 223 |
| 211 } // namespace gobject | 224 } // namespace gobject |
| 212 } // namespace cryptohome | 225 } // namespace cryptohome |
| OLD | NEW |