32 #define NDN_LOG_DEBUG_DEPTH(x) NDN_LOG_DEBUG(std::string(state->getDepth() + 1, '>') << " " << x)
35 : m_certStorage(nullptr)
49 const shared_ptr<ValidationState>& state,
54 if (cert !=
nullptr) {
56 continueValidation(*cert, state);
60 doFetch(certRequest, state,
61 [continueValidation,
this] (
const Certificate& cert,
const shared_ptr<ValidationState>& state) {
63 continueValidation(cert, state);
#define NDN_LOG_DEBUG_DEPTH(x)
const Certificate * find(const Name &certPrefix) const
Get certificate given key name.
Interface used by the validator to fetch missing certificates.
virtual void setCertificateStorage(CertificateStorage &certStorage)
Assign certificate storage to check known certificate and to cache unverified ones.
void fetch(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation)
Asynchronously fetch certificate.
virtual ~CertificateFetcher()
CertificateStorage * m_certStorage
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation
Storage for trusted anchors, verified certificate cache, and unverified certificate cache.
void cacheUnverifiedCert(Certificate &&cert)
Cache unverified certificate for a period of time (5 minutes).
const CertificateCache & getUnverifiedCertCache() const
Represents an NDN certificate.
#define NDN_LOG_INIT(name)
Define a non-member log module.
Contains the ndn-cxx security framework.