security: Adjust unlocking TPM process.
Change-Id: Iee8787bb9aaa8e05fab9544bd35ce9fe31eecf29
diff --git a/src/security/sec-tpm-memory.hpp b/src/security/sec-tpm-memory.hpp
index 01860e2..5bddf88 100644
--- a/src/security/sec-tpm-memory.hpp
+++ b/src/security/sec-tpm-memory.hpp
@@ -30,6 +30,36 @@
* From TrustedPlatformModule *
******************************/
+ virtual void
+ setTpmPassword(const uint8_t* password, size_t passwordLength)
+ {}
+
+ virtual void
+ resetTpmPassword()
+ {}
+
+ virtual void
+ setInTerminal(bool inTerminal)
+ {
+ m_inTerminal = inTerminal;
+ }
+
+ virtual bool
+ getInTerminal()
+ {
+ return m_inTerminal;
+ }
+
+ virtual bool
+ locked()
+ {
+ return true;
+ }
+
+ virtual void
+ unlockTpm(const char* password, size_t passwordLength, bool usePassword)
+ {}
+
virtual void
generateKeyPairInTpm(const Name& keyName, KeyType keyType, int keySize);
@@ -96,6 +126,8 @@
PublicKeyStore publicKeyStore_; /**< The map key is the keyName.toUri() */
PrivateKeyStore privateKeyStore_; /**< The map key is the keyName.toUri() */
+
+ bool m_inTerminal;
};
} // namespace ndn