use unique ECDH state / Encryption key for request in CA
Change-Id: If9f5471664d2eec7562b963c40f404ecfa3e5269
diff --git a/src/request-state.hpp b/src/request-state.hpp
index b5dc430..f8c0443 100644
--- a/src/request-state.hpp
+++ b/src/request-state.hpp
@@ -45,14 +45,16 @@
*
*/
class RequestState {
+
public:
RequestState();
RequestState(const Name& caName, const std::string& requestId, RequestType requestType, Status status,
- const security::v2::Certificate& cert);
+ const security::v2::Certificate& cert, Block m_encryptionKey);
RequestState(const Name& caName, const std::string& requestId, RequestType requestType, Status status,
const security::v2::Certificate& cert, const std::string& challengeType,
const std::string& challengeStatus, const system_clock::TimePoint& challengeTp,
- size_t remainingTries, time::seconds remainingTime, JsonSection&& challengeSecrets);
+ size_t remainingTries, time::seconds remainingTime, JsonSection&& challengeSecrets,
+ Block m_encryptionKey);
public:
Name m_caPrefix;
@@ -60,6 +62,7 @@
RequestType m_requestType;
Status m_status;
security::v2::Certificate m_cert;
+ Block m_encryptionKey;
std::string m_challengeType;
boost::optional<ChallengeState> m_challengeState;