security: Separate TPM locator modification and database resetting in PIB
Change-Id: I80c2805b6e1204b95d59a090a6a04e1ee62fb6e5
Refs: #3203
diff --git a/src/security/pib/pib-memory.hpp b/src/security/pib/pib-memory.hpp
index 8bacf5c..c48f9fc 100644
--- a/src/security/pib/pib-memory.hpp
+++ b/src/security/pib/pib-memory.hpp
@@ -51,7 +51,6 @@
PibMemory();
public: // TpmLocator management
-
void
setTpmLocator(const std::string& tpmLocator) override;
@@ -59,7 +58,6 @@
getTpmLocator() const override;
public: // Identity management
-
bool
hasIdentity(const Name& identity) const override;
@@ -69,6 +67,9 @@
void
removeIdentity(const Name& identity) override;
+ void
+ clearIdentities() override;
+
std::set<Name>
getIdentities() const override;
@@ -79,7 +80,6 @@
getDefaultIdentity() const override;
public: // Key management
-
bool
hasKey(const Name& keyName) const override;
@@ -124,6 +124,8 @@
getDefaultCertificateOfKey(const Name& keyName) const override;
private:
+ std::string m_tpmLocator;
+
bool m_hasDefaultIdentity;
Name m_defaultIdentity;