face: Specify signing certificate/identity in setInterestFilter/unsetInterestFilter
Refs: #1509
Change-Id: I359553e5f8eb77ae314873852eba8a10fb5e3a93
diff --git a/src/management/nfd-control-command.hpp b/src/management/nfd-control-command.hpp
index a78179d..bde5725 100644
--- a/src/management/nfd-control-command.hpp
+++ b/src/management/nfd-control-command.hpp
@@ -25,6 +25,10 @@
class ControlCommand : noncopyable
{
public:
+ /** \brief a callback on signing command interest
+ */
+ typedef function<void(Interest&)> Sign;
+
/** \brief represents an error in ControlParameters
*/
class ArgumentError : public std::invalid_argument
@@ -49,14 +53,14 @@
*/
Interest
makeCommandInterest(const ControlParameters& parameters,
- CommandInterestGenerator& commandInterestGenerator) const
+ const Sign& sign) const
{
this->validateRequest(parameters);
Name name = m_prefix;
name.append(parameters.wireEncode());
Interest commandInterest(name);
- commandInterestGenerator.generate(commandInterest);
+ sign(commandInterest);
return commandInterest;
}