controller: use a single keychain
Fixes crash due to inconsistent keychains between contact-manager,
controller and the face.
Change-Id: I8adcd0767e36d7447468899eabd0debcf4185380
diff --git a/src/contact-manager.cpp b/src/contact-manager.cpp
index 04700f5..db59560 100644
--- a/src/contact-manager.cpp
+++ b/src/contact-manager.cpp
@@ -44,9 +44,11 @@
ContactManager::ContactManager(Face& face,
+ ndn::KeyChain& keyChain,
QObject* parent)
: QObject(parent)
, m_face(face)
+ , m_keyChain(keyChain)
{
initializeSecurity();
}