Convert to v2::security and adapt to ndn-cxx changes
Change-Id: I54f1b758cfb8f3f6cbc66a1aec5120ae1640b0ec
refs: #3964
diff --git a/src/lsdb.cpp b/src/lsdb.cpp
index 9efc733..6df2346 100644
--- a/src/lsdb.cpp
+++ b/src/lsdb.cpp
@@ -38,9 +38,10 @@
public:
LsaContentPublisher(ndn::Face& face,
ndn::KeyChain& keyChain,
+ const ndn::security::SigningInfo& signingInfo,
const ndn::time::milliseconds& freshnessPeriod,
const std::string& content)
- : SegmentPublisher(face, keyChain, freshnessPeriod)
+ : SegmentPublisher(face, keyChain, signingInfo, freshnessPeriod)
, m_content(content)
{
}
@@ -1073,12 +1074,12 @@
{
LsaContentPublisher publisher(m_nlsr.getNlsrFace(),
m_nlsr.getKeyChain(),
+ m_nlsr.getSigningInfo(),
m_lsaRefreshTime,
content);
NLSR_LOG_DEBUG("Sending requested data ( " << content << ") for interest (" << interest
<< ") to be published and added to face.");
- publisher.publish(interest.getName(),
- ndn::security::signingByCertificate(m_nlsr.getDefaultCertName()));
+ publisher.publish(interest.getName());
}
// \brief Finds and sends a requested name LSA.