| Index: crypto/nss_util.h
|
| diff --git a/crypto/nss_util.h b/crypto/nss_util.h
|
| index 2c825a05eb87289ea8651da974f5ef05124a1fb6..83a8b076739a54012809d914374a3ac9bf9c715e 100644
|
| --- a/crypto/nss_util.h
|
| +++ b/crypto/nss_util.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <string>
|
| #include "base/basictypes.h"
|
| +#include "base/callback_forward.h"
|
| #include "crypto/crypto_export.h"
|
|
|
| namespace base {
|
| @@ -102,6 +103,9 @@ CRYPTO_EXPORT void OpenPersistentNSSDB();
|
| // GetPrivateNSSKeySlot() will return the TPM slot if one was found.
|
| CRYPTO_EXPORT void EnableTPMTokenForNSS();
|
|
|
| +// Returns true if EnableTPMTokenForNSS has been called.
|
| +CRYPTO_EXPORT bool IsTPMTokenEnabledForNSS();
|
| +
|
| // Get name and user PIN for the built-in TPM token on ChromeOS.
|
| // Either one can safely be NULL. Should only be called after
|
| // EnableTPMTokenForNSS has been called with a non-null delegate.
|
| @@ -114,6 +118,10 @@ CRYPTO_EXPORT void GetTPMTokenInfo(std::string* token_name,
|
| // loaded into NSS.
|
| CRYPTO_EXPORT bool IsTPMTokenReady();
|
|
|
| +// Register a callback to be run when the TPM module is loaded.
|
| +// If the module is already loaded, the |callback| will be run synchronously.
|
| +CRYPTO_EXPORT void OnTPMReady(const base::Closure& callback);
|
| +
|
| // Initialize the TPM token. Does nothing if it is already initialized.
|
| CRYPTO_EXPORT bool InitializeTPMToken(const std::string& token_name,
|
| int token_slot_id,
|
|
|