management: Controller validates StatusDataset response
refs #3653
Change-Id: Id54026d7277fecf52b6443bf42d01b5e6d7e35a3
diff --git a/src/management/nfd-controller.hpp b/src/management/nfd-controller.hpp
index 7ebc5eb..3ae1cf2 100644
--- a/src/management/nfd-controller.hpp
+++ b/src/management/nfd-controller.hpp
@@ -55,7 +55,7 @@
/** \brief construct a Controller that uses face for transport,
* and uses the passed KeyChain to sign commands
*/
- Controller(Face& face, KeyChain& keyChain);
+ Controller(Face& face, KeyChain& keyChain, Validator& validator = s_validatorNull);
/** \brief start command execution
*/
@@ -140,6 +140,10 @@
*/
static const uint32_t ERROR_NACK;
+ /** \brief error code for response validation failure
+ */
+ static const uint32_t ERROR_VALIDATION;
+
/** \brief error code for server error
*/
static const uint32_t ERROR_SERVER;