security: Consistent exception handling.
Change-Id: Ia29963e96028e591e9c4fc4a68a472f794b17e52
diff --git a/src/security/sec-tpm-osx.hpp b/src/security/sec-tpm-osx.hpp
index e18d3bc..f9cfc57 100644
--- a/src/security/sec-tpm-osx.hpp
+++ b/src/security/sec-tpm-osx.hpp
@@ -42,7 +42,7 @@
virtual bool
locked();
- virtual void
+ virtual bool
unlockTpm(const char* password, size_t passwordLength, bool usePassword);
virtual void
@@ -57,7 +57,7 @@
deleteKeyPairInTpmInternal(keyName, false);
}
- virtual ptr_lib::shared_ptr<PublicKey>
+ virtual shared_ptr<PublicKey>
getPublicKeyFromTpm(const Name& keyName);
virtual Block
@@ -81,22 +81,8 @@
virtual bool
generateRandomBlock(uint8_t* res, size_t size);
-
- ////////////////////////////////////////////////////////////////////////////////////
- // OSX-specifics
- ////////////////////////////////////////////////////////////////////////////////////
-
- /**
- * @brief Configure ACL of a particular key.
- *
- * @param keyName the name of key
- * @param keyClass the class of key, e.g. Private Key
- * @param acl the new acl of the key
- * @param appPath the absolute path to the application
- * @returns true if setting succeeds
- */
- bool
- setACL(const Name& keyName, KeyClass keyClass, int acl, const std::string& appPath);
+ virtual void
+ addAppToACL(const Name& keyName, KeyClass keyClass, const std::string& appPath, AclType acl);
protected:
/******************************