move some functions out of common

Change-Id: I4c6c5c6f22af09295680ada106d0070cc85340a6
diff --git a/src/ca-state.hpp b/src/ca-state.hpp
index e25704e..e6ad885 100644
--- a/src/ca-state.hpp
+++ b/src/ca-state.hpp
@@ -26,6 +26,21 @@
 namespace ndn {
 namespace ndncert {
 
+// NDNCERT Request status enumeration
+enum class Status : uint16_t {
+  BEFORE_CHALLENGE = 0,
+  CHALLENGE = 1,
+  PENDING = 2,
+  SUCCESS = 3,
+  FAILURE = 4,
+  NOT_STARTED = 5,
+  ENDED = 6
+};
+
+// Convert request status to string
+std::string
+statusToString(Status status);
+
 /**
  * @brief The state maintained by the Challenge modules
  */