Adapt to ndn-cxx SegmentFetcher API change
Change-Id: Ia412ead3caf3e4804de6a7a2c3b8a0706e839a87
Refs: #2734
diff --git a/src/controller-backend.cpp b/src/controller-backend.cpp
index 496cd9a..1bd9a95 100644
--- a/src/controller-backend.cpp
+++ b/src/controller-backend.cpp
@@ -386,7 +386,7 @@
ndn::util::SegmentFetcher::fetch(m_face,
interest,
- ndn::util::DontVerifySegment(),
+ m_nullValidator,
bind(&ControllerBackend::onLocalPrefix, this, _1),
bind(&ControllerBackend::onLocalPrefixError, this, _1, _2));
}
diff --git a/src/controller-backend.hpp b/src/controller-backend.hpp
index 78865ef..be2cf25 100644
--- a/src/controller-backend.hpp
+++ b/src/controller-backend.hpp
@@ -23,6 +23,7 @@
#include "validator-invitation.hpp"
#include <ndn-cxx/security/key-chain.hpp>
#include <ndn-cxx/util/in-memory-storage-persistent.hpp>
+#include <ndn-cxx/security/validator-null.hpp>
#include <boost/thread.hpp>
#include <mutex>
#endif
@@ -166,6 +167,7 @@
// Security related;
ndn::KeyChain m_keyChain;
ValidatorInvitation m_validator;
+ ndn::ValidatorNull m_nullValidator;
// RegisteredPrefixId
const ndn::RegisteredPrefixId* m_invitationListenerId;