NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
certificate-fetcher-offline.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
23 
24 namespace ndn {
25 namespace security {
26 namespace v2 {
27 
28 void
29 CertificateFetcherOffline::doFetch(const shared_ptr<CertificateRequest>& certRequest,
30  const shared_ptr<ValidationState>& state,
31  const ValidationContinuation& continueValidation)
32 {
33  state->fail({ValidationError::Code::CANNOT_RETRIEVE_CERT,
34  "Cannot fetch certificate " + certRequest->m_interest.getName().toUri() + " in offline mode"});
35 }
36 
37 } // namespace v2
38 } // namespace security
39 } // namespace ndn
Copyright (c) 2011-2015 Regents of the University of California.
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation
void doFetch(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
Asynchronous certificate fetching implementation.