rib+tools: avoid deprecated ndn::nfd::Controller(Face&) constructor
refs #2039
Change-Id: I8fde413a9f38b18d00b71878b623f0eeb3551b09
diff --git a/tools/nfdc.hpp b/tools/nfdc.hpp
index 84a7fc8..eb7bc51 100644
--- a/tools/nfdc.hpp
+++ b/tools/nfdc.hpp
@@ -27,6 +27,7 @@
#define NFD_TOOLS_NFDC_HPP
#include <ndn-cxx/face.hpp>
+#include <ndn-cxx/security/key-chain.hpp>
#include <ndn-cxx/util/time.hpp>
#include <ndn-cxx/management/nfd-controller.hpp>
#include <ndn-cxx/util/face-uri.hpp>
@@ -207,6 +208,7 @@
private:
+ ndn::KeyChain m_keyChain;
Controller m_controller;
boost::asio::io_service& m_ioService;
};