face: Specify signing certificate/identity in setInterestFilter/unsetInterestFilter
Refs: #1509
Change-Id: I359553e5f8eb77ae314873852eba8a10fb5e3a93
diff --git a/src/management/nfd-controller.cpp b/src/management/nfd-controller.cpp
index c0c7729..661b08a 100644
--- a/src/management/nfd-controller.cpp
+++ b/src/management/nfd-controller.cpp
@@ -12,6 +12,7 @@
#include "nfd-controller.hpp"
#include "nfd-control-response.hpp"
+#include "../security/identity-certificate.hpp"
namespace ndn {
namespace nfd {
@@ -75,7 +76,8 @@
void
Controller::selfRegisterPrefix(const Name& prefixToRegister,
const SuccessCallback& onSuccess,
- const FailCallback& onFail)
+ const FailCallback& onFail,
+ const Sign& sign)
{
const uint32_t selfFaceId = 0;
@@ -85,13 +87,15 @@
this->start<FibAddNextHopCommand>(parameters,
bind(onSuccess),
- bind(onFail, _2));
+ bind(onFail, _2),
+ sign);
}
void
Controller::selfDeregisterPrefix(const Name& prefixToDeRegister,
const SuccessCallback& onSuccess,
- const FailCallback& onFail)
+ const FailCallback& onFail,
+ const Sign& sign)
{
const uint32_t selfFaceId = 0;
@@ -101,7 +105,8 @@
this->start<FibRemoveNextHopCommand>(parameters,
bind(onSuccess),
- bind(onFail, _2));
+ bind(onFail, _2),
+ sign);
}
} // namespace nfd