security: In IdentityManager::setDefaultCertificateForKey, pass the certificate, not a Name. Make createIdentityCertificate take the certificatePrefix name.
diff --git a/include/ndn-cpp/security/key-chain.hpp b/include/ndn-cpp/security/key-chain.hpp
index 758c0fa..5d5f6ad 100644
--- a/include/ndn-cpp/security/key-chain.hpp
+++ b/include/ndn-cpp/security/key-chain.hpp
@@ -123,12 +123,12 @@
/**
* Set the certificate as the default for its corresponding key.
- * @param certificateName The name of the certificate.
+ * @param certificateName The certificate.
*/
void
- setDefaultCertificateForKey(const Name& certificateName)
+ setDefaultCertificateForKey(const IdentityCertificate& certificate)
{
- identityManager_->setDefaultCertificateForKey(certificateName);
+ identityManager_->setDefaultCertificateForKey(certificate);
}
/**
@@ -195,6 +195,9 @@
//TODO: Implement
}
+ ptr_lib::shared_ptr<IdentityManager>
+ getIdentityManager() { return identityManager_; }
+
/*****************************************
* Policy Management *
*****************************************/