update challenge modules aginst spec
Change-Id: Ibcfe851a77df1854f417d60cd48a66f8213aedc6
diff --git a/src/challenge-module.cpp b/src/challenge-module.cpp
index 7e97830..f6c96c8 100644
--- a/src/challenge-module.cpp
+++ b/src/challenge-module.cpp
@@ -24,13 +24,15 @@
namespace ndn {
namespace ndncert {
-ChallengeModule::ChallengeModule(const std::string& uniqueType)
- : CHALLENGE_TYPE(uniqueType)
+ChallengeModule::ChallengeModule(const std::string& challengeType,
+ size_t maxAttemptTimes,
+ time::seconds secretLifetime)
+ : CHALLENGE_TYPE(challengeType)
+ , m_maxAttemptTimes(maxAttemptTimes)
+ , m_secretLifetime(secretLifetime)
{
}
-ChallengeModule::~ChallengeModule() = default;
-
bool
ChallengeModule::isChallengeSupported(const std::string& challengeType)
{