Remove dependency on Selectors and refactor codebase.
Change-Id: Ic3024b76ba0eea61f790c91c36090b4aa68702a3
Refs: #4522
diff --git a/src/handles/command-base-handle.cpp b/src/handles/command-base-handle.cpp
index 1717839..8f2c6d0 100644
--- a/src/handles/command-base-handle.cpp
+++ b/src/handles/command-base-handle.cpp
@@ -32,7 +32,7 @@
static ndn::optional<std::string>
getSignerFromTag(const ndn::Interest& interest)
{
- shared_ptr<SignerTag> signerTag = interest.getTag<SignerTag>();
+ std::shared_ptr<SignerTag> signerTag = interest.getTag<SignerTag>();
if (signerTag == nullptr) {
return ndn::nullopt;
}
@@ -62,13 +62,10 @@
auto signer1 = getSignerFromTag(request);
std::string signer = signer1.value_or("*");
- //_LOG_DEBUG("accept " << request->getName() << " signer=" << signer);
accept(signer);
},
[reject] (const ndn::Interest& request,
const ndn::security::v2::ValidationError& error) {
- //_LOG_DEBUG("reject " << request->getName() << " signer=" <<
- // getSignerFromTag(*request).value_or("?") << ' ' << failureInfo);
reject(ndn::mgmt::RejectReply::STATUS403);
});
};