security: Consistent exception handling.
Change-Id: Ia29963e96028e591e9c4fc4a68a472f794b17e52
diff --git a/src/security/sec-tpm-file.hpp b/src/security/sec-tpm-file.hpp
index 4887a15..8a108c5 100644
--- a/src/security/sec-tpm-file.hpp
+++ b/src/security/sec-tpm-file.hpp
@@ -51,9 +51,11 @@
return false;
}
- virtual void
+ virtual bool
unlockTpm(const char* password, size_t passwordLength, bool usePassword)
- {}
+ {
+ return !locked();
+ }
virtual void
generateKeyPairInTpm(const Name & keyName, KeyType keyType, int keySize);
@@ -82,6 +84,10 @@
virtual bool
generateRandomBlock(uint8_t* res, size_t size);
+ virtual void
+ addAppToACL(const Name& keyName, KeyClass keyClass, const std::string& appPath, AclType acl)
+ {}
+
protected:
/******************************
* From TrustedPlatformModule *