mgmt: rename extractRequester() and support signed Interest v0.3
Change-Id: I6bb6635896fa1b9fa54beb70b902c5a35831dc9c
diff --git a/tests/daemon/mgmt/command-authenticator.t.cpp b/tests/daemon/mgmt/command-authenticator.t.cpp
index 3c2d59d..635ee12 100644
--- a/tests/daemon/mgmt/command-authenticator.t.cpp
+++ b/tests/daemon/mgmt/command-authenticator.t.cpp
@@ -50,11 +50,12 @@
bool
authorize(const std::string& module, const Name& identity,
- const std::function<void(Interest&)>& modifyInterest = nullptr)
+ const std::function<void(Interest&)>& modifyInterest = nullptr,
+ ndn::security::SignedInterestFormat format = ndn::security::SignedInterestFormat::V02)
{
- Interest interest = this->makeControlCommandRequest(Name("/prefix/" + module + "/verb"),
- ControlParameters(), identity);
- if (modifyInterest != nullptr) {
+ Interest interest = makeControlCommandRequest(Name("/prefix/" + module + "/verb"),
+ {}, format, identity);
+ if (modifyInterest) {
modifyInterest(interest);
}