Chromium Code Reviews| Index: service.cc |
| diff --git a/service.cc b/service.cc |
| index ed47224568e5c6a38f6111187bcefbf06fd759ed..7b964a6cf4ecf1076234e3bf79a2ca6c2d193e93 100644 |
| --- a/service.cc |
| +++ b/service.cc |
| @@ -81,6 +81,8 @@ Service::Service() |
| mount_(default_mount_.get()), |
| default_tpm_init_(new TpmInit()), |
| tpm_init_(default_tpm_init_.get()), |
| + default_pkcs11_init_(new Pkcs11Init()), |
| + pkcs11_init_(default_pkcs11_init_.get()), |
| initialize_tpm_(true), |
| mount_thread_(kMountThreadName), |
| async_complete_signal_(-1), |
| @@ -567,6 +569,22 @@ gboolean Service::TpmClearStoredPassword(GError** error) { |
| return TRUE; |
| } |
| +gboolean Service::Pkcs11IsReady(gboolean* OUT_ready, GError** error) { |
| + // TODO(kmixter/gauravsh): Base this on PKCS#11 really being initialized. |
| + *OUT_ready = TRUE; |
| + return TRUE; |
| +} |
| + |
| +gboolean Service::Pkcs11GetTpmTokenInfo(gchar** OUT_label, |
| + gchar** OUT_so_pin, |
|
kmixter1
2011/04/08 21:04:14
I'm now removing the SO pin from sending after dis
|
| + gchar** OUT_user_pin, |
| + GError** error) { |
| + pkcs11_init_->GetTpmTokenInfo(OUT_label, |
| + OUT_so_pin, |
| + OUT_user_pin); |
| + return TRUE; |
| +} |
| + |
| gboolean Service::GetStatusString(gchar** OUT_status, GError** error) { |
| Tpm::TpmStatusInfo tpm_status; |
| mount_->get_crypto()->EnsureTpm(false); |