security: In IdentityManager, move addCertificateAsDefault into the cpp file. Publish certificate.hpp
diff --git a/ndn-cpp/security/identity/identity-manager.cpp b/ndn-cpp/security/identity/identity-manager.cpp
index e07b483..93e61d4 100644
--- a/ndn-cpp/security/identity/identity-manager.cpp
+++ b/ndn-cpp/security/identity/identity-manager.cpp
@@ -81,6 +81,13 @@
setDefaultCertificateForKey(certificate.getName());
}
+void
+IdentityManager::addCertificateAsDefault(const Certificate& certificate)
+{
+ identityStorage_->addCertificate(certificate);
+ setDefaultCertificateForKey(certificate.getName());
+}
+
void
IdentityManager::signByCertificate(Data &data, const Name &certificateName, WireFormat& wireFormat)
{