Replace all uses of BOOST_THROW_EXCEPTION with NDN_THROW
Refs: #4834
Change-Id: I6c536cd321fba62d397bf8520f51d2dbba73d908
diff --git a/src/validator/certificate-fetcher-ndns-appcert.cpp b/src/validator/certificate-fetcher-ndns-appcert.cpp
index 81f31c6..966f7de 100644
--- a/src/validator/certificate-fetcher-ndns-appcert.cpp
+++ b/src/validator/certificate-fetcher-ndns-appcert.cpp
@@ -45,21 +45,19 @@
const ValidationContinuation& continueValidation)
{
const Name& key = certRequest->interest.getName();
- auto query = make_shared<IterativeQueryController>(key,
- label::APPCERT_RR_TYPE,
- certRequest->interest.getInterestLifetime(),
- [=] (const Data& data, const Response& response) {
- onQuerySuccessCallback(data, certRequest, state, continueValidation);
- },
- [=] (uint32_t errCode, const std::string& errMsg) {
- onQueryFailCallback(errMsg, certRequest, state, continueValidation);
- },
- m_face,
- nullptr,
- m_nsCache);
+ auto query = std::make_shared<IterativeQueryController>(key, label::APPCERT_RR_TYPE,
+ certRequest->interest.getInterestLifetime(),
+ [=] (const Data& data, const Response&) {
+ onQuerySuccessCallback(data, certRequest, state, continueValidation);
+ },
+ [=] (uint32_t errCode, const std::string& errMsg) {
+ onQueryFailCallback(errMsg, certRequest, state, continueValidation);
+ },
+ m_face, nullptr, m_nsCache);
query->setStartComponentIndex(m_startComponentIndex);
query->start();
- state->setTag(make_shared<IterativeQueryTag>(query));
+
+ state->setTag(std::make_shared<IterativeQueryTag>(query));
}
void