Fix failure status bug: when status is failure, request should be stopped
Change-Id: I699d9ae6bdc34ac67d9a8b3c69e9d789f9709c6d
diff --git a/src/challenge-module/challenge-pin.hpp b/src/challenge-module/challenge-pin.hpp
index 31ea05f..982ed4e 100644
--- a/src/challenge-module/challenge-pin.hpp
+++ b/src/challenge-module/challenge-pin.hpp
@@ -40,6 +40,8 @@
* There are four specific status defined in this challenge:
* NEED_CODE: When selection is made.
* WRONG_CODE: Get wrong verification code but still with secret lifetime and max retry times.
+ *
+ * Failure info when application fails:
* FAILURE_TIMEOUT: When secret is out-dated.
* FAILURE_MAXRETRY: When requester tries too many times.
*/
@@ -81,6 +83,7 @@
PUBLIC_WITH_TESTS_ELSE_PRIVATE:
static const std::string NEED_CODE;
static const std::string WRONG_CODE;
+
static const std::string FAILURE_TIMEOUT;
static const std::string FAILURE_MAXRETRY;