Adding nsync for NLSR
diff --git a/src/nlsr_km.cpp b/src/nlsr_km.cpp
new file mode 100644
index 0000000..fb4efaa
--- /dev/null
+++ b/src/nlsr_km.cpp
@@ -0,0 +1,22 @@
+#include <ndn-cpp-dev/security/identity-certificate.hpp>
+#include <ndn-cpp-dev/encoding/block.hpp>
+#include "nlsr_km.hpp"
+
+namespace nlsr
+{
+ void
+ KeyManager::initKeyManager(ConfParameter &cp)
+ {
+ ndn::Name identityName(cp.getRouterPrefix()+"/nlsr");
+ kChain.deleteIdentity(identityName);
+ ndn::Name certName = kChain.createIdentity(identityName);
+ cout<<"Certificate Name: "<<certName.toUri()<<endl;
+ ndn::Name keyName=
+ ndn::IdentityCertificate::certificateNameToPublicKeyName(certName);
+ cout<<"Key Name: "<<keyName.toUri()<<endl;
+ }
+
+}
+
+
+