22 #ifndef NDN_CXX_SECURITY_CERTIFICATE_FETCHER_DIRECT_FETCH_HPP
23 #define NDN_CXX_SECURITY_CERTIFICATE_FETCHER_DIRECT_FETCH_HPP
54 doFetch(
const shared_ptr<CertificateRequest>& keyRequest,
const shared_ptr<ValidationState>& state,
58 bool m_wantDirectInterestOnly =
false;
Provide a communication channel with local or remote NDN forwarder.
Extends CertificateFetcherFromNetwork to fetch certificates from the incoming face of the packet.
void setSendDirectInterestOnly(bool wantDirectInterestOnly)
If wantDirectInterestOnly, only the direct Interest will be sent out.
void doFetch(const shared_ptr< CertificateRequest > &keyRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
Asynchronous certificate fetching implementation.
CertificateFetcherDirectFetch(Face &face)
Fetch missing keys from the network.
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation