switch to ndn-cxx KeyChain v2
ValidatorConfig is temporarily disabled. All commands are
authorized without validation.
refs #4091
Change-Id: I4eea8cd954761424d2d084bda4e8510320b5fb46
diff --git a/src/repo.cpp b/src/repo.cpp
index dcf7007..ff2422d 100644
--- a/src/repo.cpp
+++ b/src/repo.cpp
@@ -118,7 +118,6 @@
, m_face(ioService)
, m_store(std::make_shared<SqliteStorage>(config.dbPath))
, m_storageHandle(config.nMaxPackets, *m_store)
- , m_validator(m_face)
, m_readHandle(m_face, m_storageHandle, m_keyChain, m_scheduler)
, m_writeHandle(m_face, m_storageHandle, m_keyChain, m_scheduler, m_validator)
, m_watchHandle(m_face, m_storageHandle, m_keyChain, m_scheduler, m_validator)
@@ -126,7 +125,7 @@
, m_tcpBulkInsertHandle(ioService, m_storageHandle)
{
- m_validator.load(config.validatorNode, config.repoConfigPath);
+ this->enableValidation();
}
void
@@ -173,7 +172,9 @@
void
Repo::enableValidation()
{
- m_validator.load(m_config.validatorNode, m_config.repoConfigPath);
+ std::cerr << "Validation is temporarily disabled. All commands will be authorized.\n";
+ /// \todo #4091 restore with ValidatorPolicyConf
+ // m_validator.load(m_config.validatorNode, m_config.repoConfigPath);
}
} // namespace repo