Probe: add probe token to New and Challenge
Change-Id: Iae8b009bb2e78f03910e53fb49e750ebc8a6e6ae
diff --git a/src/client-module.hpp b/src/client-module.hpp
index 30cd333..388ad85 100644
--- a/src/client-module.hpp
+++ b/src/client-module.hpp
@@ -89,7 +89,7 @@
shared_ptr<Interest>
generateNewInterest(const time::system_clock::TimePoint& notBefore,
const time::system_clock::TimePoint& notAfter,
- const Name& identityName = Name());
+ const Name& identityName = Name(), const shared_ptr<Data>& probeToken = nullptr);
std::list<std::string>
onNewResponse(const Data& reply);
@@ -124,7 +124,8 @@
genProbeRequestJson(const ClientCaItem& ca, const std::string& probeInfo);
const JsonSection
- genNewRequestJson(const std::string& ecdhPub, const security::v2::Certificate& certRequest);
+ genNewRequestJson(const std::string& ecdhPub, const security::v2::Certificate& certRequest,
+ const shared_ptr<Data>& probeToken = nullptr);
PUBLIC_WITH_TESTS_ELSE_PRIVATE:
ClientConfig m_config;