security: using Verifier
Change-Id: I2e5d27204f8bc293f347b4a12839891ec7547643
diff --git a/src/contact-manager.h b/src/contact-manager.h
index 67d4ac8..a188fdb 100644
--- a/src/contact-manager.h
+++ b/src/contact-manager.h
@@ -20,8 +20,7 @@
#include "profile.h"
#include <ndn-cpp/face.hpp>
#include <ndn-cpp/security/key-chain.hpp>
-#include <ndn-cpp/security/validation-request.hpp>
-#include <ndn-cpp-et/policy/sec-policy-simple.hpp>
+#include <ndn-cpp/security/verifier.hpp>
#endif
typedef ndn::func_lib::function<void()> TimeoutNotify;
@@ -111,39 +110,23 @@
const ndn::OnVerified& onVerified,
const ndn::OnVerifyFailed& onVerifyFailed,
const TimeoutNotify& timeoutNotify,
- int retry = 1,
- int stepCount = 0);
+ int retry = 1);
void
onTargetData(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest,
const ndn::ptr_lib::shared_ptr<ndn::Data>& data,
- int stepCount,
const ndn::OnVerified& onVerified,
- const ndn::OnVerifyFailed& onVerifyFailed,
- const TimeoutNotify& timeoutNotify);
+ const ndn::OnVerifyFailed& onVerifyFailed);
void
onTargetTimeout(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest,
int retry,
- int stepCount,
const ndn::OnVerified& onVerified,
const ndn::OnVerifyFailed& onVerifyFailed,
const TimeoutNotify& timeoutNotify);
void
- onCertData(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest,
- const ndn::ptr_lib::shared_ptr<ndn::Data>& cert,
- ndn::ptr_lib::shared_ptr<ndn::ValidationRequest> previousStep);
-
- void
- onCertTimeout(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest,
- const ndn::OnVerifyFailed& onVerifyFailed,
- const ndn::ptr_lib::shared_ptr<ndn::Data>& data,
- ndn::ptr_lib::shared_ptr<ndn::ValidationRequest> nextStep);
-
-
- void
onDnsSelfEndorseCertificateTimeoutNotify(const ndn::Name& identity);
void
@@ -227,7 +210,7 @@
ndn::ptr_lib::shared_ptr<ContactStorage> m_contactStorage;
ndn::ptr_lib::shared_ptr<DnsStorage> m_dnsStorage;
- ndn::ptr_lib::shared_ptr<ndn::SecPolicySimple> m_policy;
+ ndn::ptr_lib::shared_ptr<ndn::Verifier> m_verifier;
ndn::ptr_lib::shared_ptr<ndn::KeyChain> m_keyChain;
ndn::ptr_lib::shared_ptr<ndn::Face> m_face;
ndn::Name m_defaultIdentity;