lsdb: Segment LSAs larger than max segment size
refs: #2965
Change-Id: I5dd091b663db2cc5e2d925144e57ee55a486b3cd
diff --git a/src/publisher/segment-publisher.hpp b/src/publisher/segment-publisher.hpp
index 5aefa52..7d959e1 100644
--- a/src/publisher/segment-publisher.hpp
+++ b/src/publisher/segment-publisher.hpp
@@ -68,7 +68,8 @@
/** \brief Publish data under provided prefix
*/
void
- publish(const ndn::Name& prefix)
+ publish(const ndn::Name& prefix,
+ const ndn::security::SigningInfo& signingInfo = ndn::security::KeyChain::DEFAULT_SIGNING_INFO)
{
ndn::EncodingBuffer buffer;
generate(buffer);
@@ -99,7 +100,7 @@
data->setFinalBlockId(segmentName[-1]);
}
- publishSegment(data);
+ publishSegment(data, signingInfo);
++segmentNo;
} while (segmentBegin < end);
}
@@ -112,9 +113,9 @@
private:
void
- publishSegment(ndn::shared_ptr<ndn::Data>& data)
+ publishSegment(ndn::shared_ptr<ndn::Data>& data, const ndn::security::SigningInfo& signingInfo)
{
- m_keyChain.sign(*data);
+ m_keyChain.sign(*data, signingInfo);
m_face.put(*data);
}