rib+tools: avoid deprecated ndn::nfd::Controller(Face&) constructor
refs #2039
Change-Id: I8fde413a9f38b18d00b71878b623f0eeb3551b09
diff --git a/tools/ndn-autoconfig.cpp b/tools/ndn-autoconfig.cpp
index 87fd884..77470c5 100644
--- a/tools/ndn-autoconfig.cpp
+++ b/tools/ndn-autoconfig.cpp
@@ -28,6 +28,7 @@
#include "core/face-uri.hpp"
#include <ndn-cxx/face.hpp>
+#include <ndn-cxx/security/key-chain.hpp>
#include <ndn-cxx/management/nfd-controller.hpp>
#include <ndn-cxx/management/nfd-face-status.hpp>
#include <ndn-cxx/security/key-chain.hpp>
@@ -79,7 +80,7 @@
explicit
NdnAutoconfig()
- : m_controller(m_face)
+ : m_controller(m_face, m_keyChain)
{
}
@@ -491,6 +492,7 @@
private:
Face m_face;
+ KeyChain m_keyChain;
nfd::Controller m_controller;
};