22 #ifndef NDN_SECURITY_VALIDATION_REQUEST_HPP 23 #define NDN_SECURITY_VALIDATION_REQUEST_HPP 25 #include "../interest.hpp" 34 typedef function<void(const shared_ptr<const Interest>&,
41 typedef function<void(const shared_ptr<const Data>&,
59 int nRetries,
int nSteps,
60 uint64_t requesterFaceId = 0)
94 #endif //NDN_SECURITY_VALIDATION_REQUEST_HPP function< void(const shared_ptr< const Interest > &, const std::string &)> OnInterestValidationFailed
Callback to report a failed Interest validation.
Copyright (c) 2013-2017 Regents of the University of California.
Interest m_interest
the Interest for the requested data/certificate.
represents an Interest packet
ValidationRequest contains information related to further validation.
int m_nRetries
the number of retries when the interest times out.
function< void(const shared_ptr< const Data > &, const std::string &)> OnDataValidationFailed
Callback to report a failed Data validation.
function< void(const shared_ptr< const Data > &)> OnDataValidated
Callback to report a successful Data validation.
function< void(const shared_ptr< const Interest > &)> OnInterestValidated
Callback to report a successful Interest validation.
int m_nSteps
the number of validation steps that have been performed.
ValidationRequest(const Interest &interest, const OnDataValidated &onDataValidated, const OnDataValidationFailed &onDataValidationFailed, int nRetries, int nSteps, uint64_t requesterFaceId=0)
uint64_t m_requesterFaceId
the incoming face id of the origin packet.
OnDataValidationFailed m_onDataValidationFailed
callback when the retrieved certificate cannot be authenticated.
OnDataValidated m_onDataValidated
callback when the retrieved certificate is authenticated.