update name assignment part
Change-Id: I9655448b2d2ed927e36e55ac49357afa0470e507
diff --git a/src/configuration.hpp b/src/configuration.hpp
index 3d9ef9a..fd4ab93 100644
--- a/src/configuration.hpp
+++ b/src/configuration.hpp
@@ -22,6 +22,7 @@
#define NDNCERT_CONFIGURATION_HPP
#include "ca-state.hpp"
+#include "name-assignments/assignment-funcs.hpp"
namespace ndn {
namespace ndncert {
@@ -79,17 +80,6 @@
};
/**
- * @brief The name assignment function provided by the CA operator to generate available
- * namecomponents.
- * The function does not guarantee that all the returned names are available. Therefore the
- * CA should further check the availability of each returned name and remove unavailable results.
- *
- * @p vector, input, a list of parameter key-value pair used for name assignment.
- * @return a vector containing the possible namespaces derived from the parameters.
- */
-using NameAssignmentFunc = function<std::vector<PartialName>(const std::vector<std::tuple<std::string, std::string>>)>;
-
-/**
* @brief The function would be invoked whenever the certificate request status is updated.
* The callback is used to notice the CA application or CA command line tool. The callback is
* fired whenever a request instance is created, challenge status is updated, and when certificate
@@ -145,6 +135,8 @@
* StatusUpdate Callback function
*/
StatusUpdateCallback m_statusUpdateCallback;
+
+ std::vector<std::unique_ptr<NameAssignmentFuncFactory>> m_heuristic;
};
/**