Adding support for Timestamp and Freshness in ContentObject
diff --git a/model/ccnx-content-object-header.cc b/model/ccnx-content-object-header.cc
index 767d512..ca013e8 100644
--- a/model/ccnx-content-object-header.cc
+++ b/model/ccnx-content-object-header.cc
@@ -61,6 +61,31 @@
return *m_name;
}
+void
+CcnxContentObjectHeader::SetTimestamp (const Time ×tamp)
+{
+ m_signedInfo.m_timestamp = timestamp;
+}
+
+Time
+CcnxContentObjectHeader::GetTimestamp () const
+{
+ return m_signedInfo.m_timestamp;
+}
+
+void
+CcnxContentObjectHeader::SetFreshness (const Time &freshness)
+{
+ m_signedInfo.m_freshness = freshness;
+}
+
+Time
+CcnxContentObjectHeader::GetFreshness () const
+{
+ return m_signedInfo.m_freshness;
+}
+
+
uint32_t
CcnxContentObjectHeader::GetSerializedSize (void) const
{