rib+tools: avoid deprecated ndn::nfd::Controller(Face&) constructor

refs #2039

Change-Id: I8fde413a9f38b18d00b71878b623f0eeb3551b09
diff --git a/tools/nfd-autoreg.cpp b/tools/nfd-autoreg.cpp
index dc013ea..43862a6 100644
--- a/tools/nfd-autoreg.cpp
+++ b/tools/nfd-autoreg.cpp
@@ -26,6 +26,7 @@
 #include <ndn-cxx/face.hpp>
 #include <ndn-cxx/name.hpp>
 
+#include <ndn-cxx/security/key-chain.hpp>
 #include <ndn-cxx/management/nfd-controller.hpp>
 #include <ndn-cxx/management/nfd-face-monitor.hpp>
 #include <ndn-cxx/management/nfd-face-status.hpp>
@@ -45,13 +46,14 @@
 
 using namespace ndn::nfd;
 using ndn::Face;
+using ndn::KeyChain;
 using ndn::nfd::FaceEventNotification;
 
 class AutoregServer : boost::noncopyable
 {
 public:
   AutoregServer()
-    : m_controller(m_face)
+    : m_controller(m_face, m_keyChain)
     , m_faceMonitor(m_face)
     , m_cost(255)
   {
@@ -377,6 +379,7 @@
 
 private:
   Face m_face;
+  KeyChain m_keyChain;
   Controller m_controller;
   FaceMonitor m_faceMonitor;
   std::vector<ndn::Name> m_autoregPrefixes;