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; -*- */
22
#include "
certificate-fetcher-offline.hpp
"
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
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::security::v2::CertificateFetcher::ValidationContinuation
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation
Definition:
certificate-fetcher.hpp:43
ndn::security::v2::CertificateFetcherOffline::doFetch
void doFetch(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
Asynchronous certificate fetching implementation.
Definition:
certificate-fetcher-offline.cpp:29
certificate-fetcher-offline.hpp
ndnSIM
ndn-cxx
src
security
v2
certificate-fetcher-offline.cpp
Generated on Sun Feb 25 2018 13:27:05 for ndnSIM by
1.8.14