security: Fix the compile problem caused by an API change of ValidatorConfig.

Refs: #1481

Change-Id: Iea5cb1e13b509d570d8eb6b05ccb3fd6d7816bbc
diff --git a/rib/rib-manager.cpp b/rib/rib-manager.cpp
index 6cb0d6b..afcd1b3 100644
--- a/rib/rib-manager.cpp
+++ b/rib/rib-manager.cpp
@@ -64,10 +64,10 @@
 }
 
 RibManager::RibManager()
-  : m_face(new ndn::Face(shared_ptr<boost::asio::io_service>(&getGlobalIoService(), &NullDeleter)))
-  , m_nfdController(new ndn::nfd::Controller(*m_face))
+  : m_face(shared_ptr<boost::asio::io_service>(&getGlobalIoService(), &NullDeleter))
+  , m_nfdController(new ndn::nfd::Controller(m_face))
   , m_validator(m_face)
-  , m_faceMonitor(*m_face)
+  , m_faceMonitor(m_face)
   , m_verbDispatch(COMMAND_VERBS,
                    COMMAND_VERBS + (sizeof(COMMAND_VERBS) / sizeof(VerbAndProcessor)))
 {
@@ -80,15 +80,15 @@
   BOOST_ASSERT(COMMAND_PREFIX.size() == REMOTE_COMMAND_PREFIX.size());
 
   NFD_LOG_INFO("Setting interest filter on: " << COMMAND_PREFIX.toUri());
-  m_face->setController(m_nfdController);
-  m_face->setInterestFilter(COMMAND_PREFIX.toUri(),
-                            bind(&RibManager::onRibRequest, this, _2),
-                            bind(&RibManager::setInterestFilterFailed, this, _1, _2));
+  m_face.setController(m_nfdController);
+  m_face.setInterestFilter(COMMAND_PREFIX.toUri(),
+                           bind(&RibManager::onRibRequest, this, _2),
+                           bind(&RibManager::setInterestFilterFailed, this, _1, _2));
 
   NFD_LOG_INFO("Setting interest filter on: " << REMOTE_COMMAND_PREFIX.toUri());
-  m_face->setInterestFilter(REMOTE_COMMAND_PREFIX.toUri(),
-                            bind(&RibManager::onRibRequest, this, _2),
-                            bind(&RibManager::setInterestFilterFailed, this, _1, _2));
+  m_face.setInterestFilter(REMOTE_COMMAND_PREFIX.toUri(),
+                           bind(&RibManager::onRibRequest, this, _2),
+                           bind(&RibManager::setInterestFilterFailed, this, _1, _2));
 
   NFD_LOG_INFO("Start monitoring face create/destroy events");
   m_faceMonitor.addSubscriber(boost::bind(&RibManager::onNotification, this, _1));
@@ -104,8 +104,8 @@
 
 void
 RibManager::onConfig(const ConfigSection& configSection,
-                      bool isDryRun,
-                      const std::string& filename)
+                     bool isDryRun,
+                     const std::string& filename)
 {
   /// \todo remove check after validator-conf replaces settings on each load
   if (!isDryRun)
@@ -116,7 +116,7 @@
 RibManager::setInterestFilterFailed(const Name& name, const std::string& msg)
 {
   NFD_LOG_ERROR("Error in setting interest filter (" << name << "): " << msg);
-  m_face->shutdown();
+  m_face.shutdown();
 }
 
 void
@@ -129,7 +129,7 @@
   responseData.setContent(encodedControl);
 
   m_keyChain.sign(responseData);
-  m_face->put(responseData);
+  m_face.put(responseData);
 }
 
 void
@@ -314,7 +314,7 @@
 {
   NFD_LOG_ERROR("Error: couldn't enable local control header "
                 << "(code: " << code << ", info: " << reason << ")");
-  m_face->shutdown();
+  m_face.shutdown();
 }
 
 void