src: disable network interest in CertificateFetcherDirectFetch
refs: #4879 Change-Id: I6b34b34710bdfcdf0a82327637be83bc452b16d9
This commit is contained in:
1 parent
af7a2113e4
commit
dec85d2da4
1 file changed
+11
-3
+11
-3
@@ -31,6 +31,14 @@ INIT_LOGGER(ConfParameter);
|
||||
// To be changed when breaking changes are made to sync
|
||||
const uint64_t ConfParameter::SYNC_VERSION = 6;
|
||||
|
||||
static std::unique_ptr<ndn::security::v2::CertificateFetcherDirectFetch>
|
||||
makeCertificateFetcher(ndn::Face& face)
|
||||
{
|
||||
auto fetcher = std::make_unique<ndn::security::v2::CertificateFetcherDirectFetch>(face);
|
||||
fetcher->setSendDirectInterestOnly(true);
|
||||
return fetcher;
|
||||
}
|
||||
|
||||
ConfParameter::ConfParameter(ndn::Face& face, const std::string& confFileName)
|
||||
: m_confFileName(confFileName)
|
||||
, m_lsaRefreshTime(LSA_REFRESH_TIME_DEFAULT)
|
||||
@@ -50,10 +58,10 @@ ConfParameter::ConfParameter(ndn::Face& face, const std::string& confFileName)
|
||||
, m_syncProtocol(SYNC_PROTOCOL_CHRONOSYNC)
|
||||
, m_adjl()
|
||||
, m_npl()
|
||||
, m_validator(std::make_unique<ndn::security::v2::CertificateFetcherDirectFetch>(face))
|
||||
, m_validator(makeCertificateFetcher(face))
|
||||
, m_prefixUpdateValidator(std::make_unique<ndn::security::v2::CertificateFetcherDirectFetch>(face))
|
||||
{
|
||||
}
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
ConfParameter::writeLog()
|
||||
|
||||
Reference in new issue
Block a user