22 #ifndef NDN_CXX_SECURITY_CERTIFICATE_FETCHER_HPP
23 #define NDN_CXX_SECURITY_CERTIFICATE_FETCHER_HPP
32 class CertificateRequest;
33 class CertificateStorage;
34 class ValidationState;
43 const shared_ptr<ValidationState>& state)>;
72 fetch(
const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
80 doFetch(
const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
Interface used by the validator to fetch missing certificates.
void fetch(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation)
Asynchronously fetch certificate.
CertificateStorage * m_certStorage
virtual ~CertificateFetcher()
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation
virtual void setCertificateStorage(CertificateStorage &certStorage)
Assign certificate storage to check known certificate and to cache unverified ones.
Storage for trusted anchors, verified certificate cache, and unverified certificate cache.
Represents an NDN certificate following the version 2.0 format.
Common includes and macros used throughout the library.